X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/87d99e7285f69f6f51596162ad8d7b744c48d517..c9e93ded8a5ca6f8a9212c5e64a99616889b5aac:/SL/DO.pm diff --git a/SL/DO.pm b/SL/DO.pm index 092fd0bc3..73314bc2e 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -104,6 +104,10 @@ sub transactions { push @where, "dord.$item = ?"; push @values, conv_i($form->{$item}); } + if (!$main::auth->assert('sales_all_edit', 1)) { + push @where, qq|dord.employee_id = (select id from employee where login= ?)|; + push @values, $form->{login}; + } foreach my $item (qw(donumber ordnumber cusordnumber transaction_description)) { next unless ($form->{$item});