X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7e7a13692ac4dd952cf85a972d2919eed80edca1..e14cb525c640cb15bb6b2dfb62ccebbe78cb45cd:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 002041ecf..8c72d3cf9 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -472,6 +472,10 @@ sub ar_transactions { qq|LEFT JOIN department d ON (d.id = a.department_id)|; my $where = "1 = 1"; + if ($form->{customernumber}) { + $where .= " AND c.customernumber = ?"; + push(@values, $form->{customernumber}); + } if ($form->{customer_id}) { $where .= " AND a.customer_id = ?"; push(@values, $form->{customer_id});