X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/19304dbf9867573d08a50b0a9eaaeb0f6d1332c9..2391833dbbf3be1eb1822485171727a06da69475:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 148edd2d3..73c57867b 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -573,9 +573,9 @@ sub ar_transactions { $where .= " AND c.business_id = ?"; push(@values, $business_id); } - if ($form->{department_id}) { - $where .= " AND a.department_id = ?"; - push(@values, $form->{department_id}); + if ($form->{taxzone_id}) { + $where .= " AND a.taxzone_id = ?"; + push(@values, $form->{taxzone_id}); } foreach my $column (qw(invnumber ordnumber cusordnumber notes transaction_description shipvia shippingpoint)) { if ($form->{$column}) {