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