Fixes for Invoice Email

This commit is contained in:
Frank Schubert
2024-07-10 16:19:57 +02:00
parent 178e71b280
commit 369bfa09b1
3 changed files with 27 additions and 6 deletions

View File

@@ -315,6 +315,21 @@ class InvoiceModel {
}
}
if(array_key_exists("billing_type", $filter)) {
$billing_type = $db->escape($filter['billing_type']);
if($billing_type) {
$where .= " AND Invoice.billing_type LIKE '$billing_type'";
}
}
if(array_key_exists("billing_delivery", $filter)) {
$billing_delivery = $db->escape($filter['billing_delivery']);
if($billing_delivery) {
$where .= " AND Invoice.billing_delivery LIKE '$billing_delivery'";
}
}
if (array_key_exists("company", $filter)) {
$company = FronkDB::singleton()->escape($filter["company"]);
if ($company) {