X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/87d99e7285f69f6f51596162ad8d7b744c48d517..c9e93ded8a5ca6f8a9212c5e64a99616889b5aac:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 7d037838c..8cc5ea6d8 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -480,6 +480,10 @@ sub ar_transactions { } } + if (!$main::auth->assert('sales_all_edit', 1)) { + $where .= " AND a.employee_id = (select id from employee where login= ?)"; + push (@values, $form->{login}); + } my @a = qw(transdate invnumber name); push @a, "employee" if $form->{l_employee}; my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';