From 3d749800c03a7d723fedccb3c047fa1b22565eed Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Sun, 1 Sep 2024 19:11:33 +0200 Subject: [PATCH] fixed invoice_file filter in InvoiceModel --- application/Invoice/InvoiceModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Invoice/InvoiceModel.php b/application/Invoice/InvoiceModel.php index 90c5d03d4..659842282 100644 --- a/application/Invoice/InvoiceModel.php +++ b/application/Invoice/InvoiceModel.php @@ -371,7 +371,7 @@ class InvoiceModel { if($invoice_file === true) { $where .= " AND InvoiceFile.id > 0'"; } elseif($invoice_file === false || $invoice_file === null) { - $where .= " AND InvoiceFile.id IS NOT NULL"; + $where .= " AND InvoiceFile.id IS NULL"; } }