Rechnungsbericht VK und EK nach Steuerzone filtern können
[kivitendo-erp.git] / SL / AP.pm
index a02d6ff..9f34d99 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -618,6 +618,10 @@ sub ap_transactions {
     $where .= " AND a.ordnumber ILIKE ?";
     push(@values, like($form->{ordnumber}));
   }
+  if ($form->{taxzone_id}) {
+    $where .= " AND a.taxzone_id = ?";
+    push(@values, $form->{taxzone_id});
+  }
   if ($form->{transaction_description}) {
     $where .= " AND a.transaction_description ILIKE ?";
     push(@values, like($form->{transaction_description}));