Invoice BMD export

This commit is contained in:
Frank Schubert
2024-07-09 18:50:08 +02:00
parent 74e78fed49
commit cc4f2e3bdb
7 changed files with 241 additions and 27 deletions

View File

@@ -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'];