X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ca0df4c46aea2660839d4f77bfda8ea3e826a61d..4800abb9a0b8363c3c529927f34a5b26551497b2:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 079e9e889..4caf5273c 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -499,14 +499,7 @@ sub ar_transactions { $where .= " AND NOT invoice = 'f' "; # remove ar transactions from Sales -> Reports -> Invoices }; - if ($form->{customernumber}) { - $where .= " AND c.customernumber = ?"; - push(@values, trim($form->{customernumber})); - } - if ($form->{customer_id}) { - $where .= " AND a.customer_id = ?"; - push(@values, $form->{customer_id}); - } elsif ($form->{customer}) { + if ($form->{customer}) { $where .= " AND c.name ILIKE ?"; push(@values, like($form->{customer})); }