From ed29480ccedf0db8efbe374a673f2b6183b95c8e Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 21 Jan 2025 09:37:40 +0100 Subject: [PATCH] Added Fibu Filter --- Layout/default/Invoice/Index.php | 6 +++++- application/Invoice/InvoiceModel.php | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Layout/default/Invoice/Index.php b/Layout/default/Invoice/Index.php index 30ac90346..9e22ad4cb 100644 --- a/Layout/default/Invoice/Index.php +++ b/Layout/default/Invoice/Index.php @@ -54,7 +54,11 @@ $pagination_entity_name = "Rechnungen"; "/> -
+
+ + "/> +
+
"/>
diff --git a/application/Invoice/InvoiceModel.php b/application/Invoice/InvoiceModel.php index 659842282..5449b1d22 100644 --- a/application/Invoice/InvoiceModel.php +++ b/application/Invoice/InvoiceModel.php @@ -577,6 +577,13 @@ class InvoiceModel { } } + if(array_key_exists("fibu_account_number", $filter)) { + $fibu_account_number = $filter['fibu_account_number']; + if($fibu_account_number) { + $where .= " AND Invoice.fibu_account_number = '$fibu_account_number'"; + } + } + if(array_key_exists("add-where", $filter)) { $where .= " ".$filter['add-where'];