Billing changes

This commit is contained in:
Frank Schubert
2024-08-05 21:09:13 +02:00
parent 75f75b6327
commit a6389f014f
10 changed files with 357 additions and 149 deletions

View File

@@ -32,6 +32,7 @@ class InvoiceModel {
public $bank_account_bic;
public $total;
public $total_gross;
public $vatgroup_id;
public $bmd_export_date;
public $date_delivered;
public $total_vat;
@@ -407,6 +408,19 @@ class InvoiceModel {
}
}
if(array_key_exists("vatgroup_id", $filter)) {
$vatgroup_id = $filter['vatgroup_id'];
if(is_numeric($vatgroup_id)) {
$where .= " AND Invoice.vatgroup_id = '$vatgroup_id'";
}
}
if(array_key_exists("!vatgroup_id", $filter)) {
$vatgroup_id = $filter['!vatgroup_id'];
if(is_numeric($vatgroup_id)) {
$where .= " AND Invoice.vatgroup_id <> '$vatgroup_id'";
}
}
if(array_key_exists("add-where", $filter)) {
$where .= " ".$filter['add-where'];