Revision 7e6ad220
Von Sven Schöling vor fast 13 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
708 | 708 |
# setup vendor / customer data |
709 | 709 |
$form->all_vc(\%myconfig, $form->{vc}, ($form->{vc} eq 'customer') ? "AR" : "AP"); |
710 | 710 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, |
711 |
"employees" => "ALL_EMPLOYEES", |
|
712 |
"salesmen" => "ALL_SALESMEN", |
|
713 | 711 |
"departments" => "ALL_DEPARTMENTS", |
714 | 712 |
"$form->{vc}s" => "ALL_VC"); |
713 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
|
715 | 714 |
|
716 | 715 |
# constants and subs for template |
717 | 716 |
$form->{jsscript} = 1; |
718 |
$form->{employee_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} }; |
|
719 | 717 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
720 |
$form->{salesman_labels} = $form->{employee_labels}; |
|
721 | 718 |
|
722 | 719 |
$form->header(); |
723 | 720 |
|
Auch abrufbar als: Unified diff
gelöschte Benutzer in oe/search ausblenden