X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAR.pm;h=4caf5273ca5ebb1227194b35c8e4215ce460bf52;hb=2dcf4554600db801c495e0d5bb99eadfb36785bd;hp=4fea4afe9f7fc9d2dae6bb2b2ba9a6a3b1c02bf0;hpb=41cceb1e99fa9d9dbf7977772e16e23646208608;p=kivitendo-erp.git diff --git a/SL/AR.pm b/SL/AR.pm index 4fea4afe9..4caf5273c 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -99,8 +99,6 @@ sub _post_transaction { } $form->{paid} = $form->round_amount($form->{paid} * ($form->{exchangerate} || 1), 2); - ($null, $form->{employee_id}) = split /--/, $form->{employee}; - $form->get_employee($dbh) unless $form->{employee_id}; # if we have an id delete old records else make one @@ -501,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})); }