X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6ac47be4e3e318ea212ca595195b0b55a9c386a3..e8d91442a904758a2c15d5d22a05790fac120d23:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index f754137ee..bcd6d83cb 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 ( $main::auth->check_right($form->{login}, 'show_ap_transactions') ) { + $where .= " AND NOT invoice = 'f' "; # remove ap transactions from Sales -> Reports -> Invoices + }; + my @values; if ($form->{vendor_id}) {