Revision 6ad851ab
Von Sven Schöling vor fast 13 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
304 | 304 |
"projects" => { "key" => "ALL_PROJECTS", |
305 | 305 |
"all" => 0, |
306 | 306 |
"old_id" => \@old_project_ids }, |
307 |
"employees" => "ALL_EMPLOYEES", |
|
308 |
"salesmen" => "ALL_SALESMEN", |
|
309 | 307 |
"taxzones" => "ALL_TAXZONES", |
310 | 308 |
"currencies" => "ALL_CURRENCIES", |
311 | 309 |
"customers" => "ALL_CUSTOMERS", |
312 | 310 |
"departments" => "all_departments", |
313 | 311 |
"price_factors" => "ALL_PRICE_FACTORS"); |
314 | 312 |
|
313 |
$TMPL_VAR{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{employee_id}, deleted => 0 ] ]); |
|
314 |
$TMPL_VAR{ALL_SALESMEN} = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{salesman_id}, deleted => 0 ] ]); |
|
315 | 315 |
$TMPL_VAR{ALL_CONTACTS} = SL::DB::Manager::Contact->get_all(query => [ |
316 | 316 |
or => [ |
317 | 317 |
cp_cv_id => $::form->{"$::form->{vc}_id"} * 1, |
... | ... | |
321 | 321 |
] |
322 | 322 |
] |
323 | 323 |
]); |
324 |
$TMPL_VAR{sales_employee_labels} = sub { $_[0]->{name} || $_[0]->{login} }; |
|
325 | 324 |
$TMPL_VAR{shipto_labels} = sub { join "; ", grep { $_ } map { $_[0]->{"shipto${_}" } } qw(name department_1 street city) }; |
326 | 325 |
$TMPL_VAR{department_labels} = sub { "$_[0]->{description}--$_[0]->{id}" }; |
327 | 326 |
|
Auch abrufbar als: Unified diff
gelöschte Benutzer in is/form_header ausblenden