Revision c69c1871
Von G. Richardson vor fast 14 Jahren hinzugefügt
SL/AR.pm | ||
---|---|---|
490 | 490 |
} |
491 | 491 |
} |
492 | 492 |
|
493 |
if (!$main::auth->assert('sales_all_edit', 1)) { |
|
493 |
if (!$main::auth->assert('sales_all_edit', 1)) { |
|
494 |
# only show own invoices |
|
494 | 495 |
$where .= " AND a.employee_id = (select id from employee where login= ?)"; |
495 | 496 |
push (@values, $form->{login}); |
496 |
} |
|
497 |
} else { |
|
498 |
if ($form->{employee_id}) { |
|
499 |
$where .= " AND a.employee_id = ?"; |
|
500 |
push @values, conv_i($form->{employee_id}); |
|
501 |
} |
|
502 |
if ($form->{salesman_id}) { |
|
503 |
$where .= " AND a.salesman_id = ?"; |
|
504 |
push @values, conv_i($form->{salesman_id}); |
|
505 |
} |
|
506 |
}; |
|
507 |
|
|
497 | 508 |
my @a = qw(transdate invnumber name); |
498 | 509 |
push @a, "employee" if $form->{l_employee}; |
499 | 510 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; |
Auch abrufbar als: Unified diff
In Verkaufsberichte->Rechnungen auch nach Bearbeiter/Verkäufer filtern
Wie in den anderen Berichten auch