X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAP.pm;h=9215ab710d47797979051f35d053dda893353726;hb=2766521474b20c77e62d169a1c99efb41cb1c56f;hp=f754137eef4d1292e9af8f1422297d317ad53d46;hpb=69c1212c098cd2ba8235bfdcb01c990fa553bb1d;p=kivitendo-erp.git diff --git a/SL/AP.pm b/SL/AP.pm index f754137ee..9215ab710 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -491,6 +491,11 @@ sub ap_transactions { qq|LEFT JOIN payment_terms pt ON (pt.id = v.payment_id)|; my $where = ''; + + unless ( $::auth->assert('show_ap_transactions', 1) ) { + $where .= " AND NOT invoice = 'f' "; # remove ap transactions from Sales -> Reports -> Invoices + }; + my @values; if ($form->{vendor_id}) {