PreorderBilling BMD Expot

This commit is contained in:
Frank Schubert
2025-04-10 13:26:56 +02:00
parent 4bc1a0c97b
commit 653b28aa5c
5 changed files with 300 additions and 12 deletions
@@ -575,6 +575,17 @@ RML Infrastruktur GmbH";
}
}
if(array_key_exists("bmd_export_date", $filter)) {
$bmd_export_date = $filter['bmd_export_date'];
if($bmd_export_date === null || $bmd_export_date === false) {
$where .= " AND (PreorderBillingInvoice.bmd_export_date IS NULL OR PreorderBillingInvoice.bmd_export_date=0)";
} elseif($bmd_export_date === true) {
$where .= " AND (PreorderBillingInvoice.bmd_export_date IS NOT NULL AND PreorderBillingInvoice.bmd_export_date > 0)";
} elseif(is_numeric($bmd_export_date)) {
$where .= " AND PreorderBillingInvoice.bmd_export_date=$bmd_export_date";
}
}
if(array_key_exists("add-where", $filter)) {
$where .= " ".$filter['add-where'];
}