Invoice BMD export
This commit is contained in:
@@ -32,6 +32,7 @@ class InvoiceModel {
|
||||
public $bank_account_bic;
|
||||
public $total;
|
||||
public $total_gross;
|
||||
public $bmd_export_date;
|
||||
public $total_vat;
|
||||
public $create_by;
|
||||
public $edit_by;
|
||||
@@ -252,6 +253,16 @@ class InvoiceModel {
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("bmd_export_date", $filter)) {
|
||||
$bmd_export_date = $filter['bmd_export_date'];
|
||||
if(is_numeric($bmd_export_date)) {
|
||||
$where .= " AND Invoice.bmd_export_date=$bmd_export_date";
|
||||
} elseif($bmd_export_date === null || $bmd_export_date === false) {
|
||||
$where .= " AND Invoice.bmd_export_date IS NULL";
|
||||
} elseif($bmd_export_date === true) {
|
||||
$where .= " AND Invoice.bmd_export_date > 0";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("billingaddress_id", $filter)) {
|
||||
$Invoiceaddress_id = $filter['billingaddress_id'];
|
||||
|
||||
Reference in New Issue
Block a user