# limits by employees (Bearbeiter), not salesmen!
if (!$main::auth->assert('sales_all_edit', 1)) {
$where .= " AND ar.employee_id = (select id from employee where login= ?)";
# limits by employees (Bearbeiter), not salesmen!
if (!$main::auth->assert('sales_all_edit', 1)) {
$where .= " AND ar.employee_id = (select id from employee where login= ?)";