Billing changes
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user