X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/80f6efd0cd9de22d54ccc605808a74c9955e643c..b68c23bf6e98cf678081dcaa84a8593b10aaff29:/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});