X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAP.pm;h=3f1818bdc5c113dc815aa15125c742f7da7dc352;hb=b5157f97d47413e5f33cced1d0de527979ff3d61;hp=b63abab883f460c597c0d8d8011655cccdfdf6e1;hpb=a851fde7ef0995a2848c0edb732fe1d50a58d82b;p=kivitendo-erp.git diff --git a/SL/AP.pm b/SL/AP.pm index b63abab88..3f1818bdc 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -90,7 +90,7 @@ sub post_transaction { $form->{taxincluded} = 0 if ($form->{amount} == 0); for $i (1 .. $form->{rowcount}) { - ($form->{"tax_id_$i"}, $NULL) = split /--/, $form->{"taxchart_$i"}; + ($form->{"tax_id_$i"}, $NULL) = split /--/, $form->{"taxchart_$i"}; $query = qq|SELECT c.accno, t.taxkey, t.rate | . @@ -415,7 +415,7 @@ sub ap_transactions { qq|LEFT JOIN employee e ON (a.employee_id = e.id) | . qq|LEFT JOIN project pr ON (a.globalproject_id = pr.id) |; - my $where; + my $where = qq| WHERE storno != true |; my @values; if ($form->{vendor_id}) { @@ -466,7 +466,7 @@ sub ap_transactions { } if ($where) { - substr($where, 0, 4) = "WHERE"; +# substr($where, 0, 4) = "WHERE"; $query .= $where; }