X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0767bd031c06f034571510701433e64f2241a2ed..cac2ae9bcd47fc55d35c37e25dbb03cd6ac6edeb:/SL/AP.pm?ds=sidebyside 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}) {