Revision d139dd31
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
343 | 343 |
|
344 | 344 |
# label subs |
345 | 345 |
my $employee_list_query_gen = sub { $::form->{$_[0]} ? [ or => [ id => $::form->{$_[0]}, deleted => 0 ] ] : [ deleted => 0 ] }; |
346 |
$TMPL_VAR{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => $employee_list_query_gen->('employee_id')); |
|
347 |
$TMPL_VAR{ALL_SALESMEN} = SL::DB::Manager::Employee->get_all(query => $employee_list_query_gen->('salesman_id')); |
|
346 |
$TMPL_VAR{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => $employee_list_query_gen->('employee_id'));
|
|
347 |
$TMPL_VAR{ALL_SALESMEN} = SL::DB::Manager::Employee->get_all_sorted(query => $employee_list_query_gen->('salesman_id'));
|
|
348 | 348 |
$TMPL_VAR{ALL_SHIPTO} = SL::DB::Manager::Shipto->get_all(query => [ |
349 | 349 |
or => [ trans_id => $::form->{"$::form->{vc}_id"} * 1, and => [ shipto_id => $::form->{shipto_id} * 1, trans_id => undef ] ] |
350 | 350 |
]); |
... | ... | |
728 | 728 |
"$form->{vc}s" => "ALL_VC", |
729 | 729 |
"taxzones" => "ALL_TAXZONES", |
730 | 730 |
"business_types" => "ALL_BUSINESS_TYPES",); |
731 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
|
731 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]);
|
|
732 | 732 |
|
733 | 733 |
# constants and subs for template |
734 | 734 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
Auch abrufbar als: Unified diff
Verkäufer-/Bearbeiter-Drop-Downs in mehreren Masken sortiert anzeigen