Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5b8e9fcb

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

  • ID 5b8e9fcb2f9c94d69519c927b8aa59184d93cea3
  • Vorgänger 3816bb51
  • Nachfolger 65f528cb

Lieferadressen-Drop-Downs in mehreren Masken sortiert anzeigen

Unterschiede anzeigen:

bin/mozilla/oe.pl
345 345
  my $employee_list_query_gen      = sub { $::form->{$_[0]} ? [ or => [ id => $::form->{$_[0]}, deleted => 0 ] ] : [ deleted => 0 ] };
346 346
  $TMPL_VAR{ALL_EMPLOYEES}         = SL::DB::Manager::Employee->get_all_sorted(query => $employee_list_query_gen->('employee_id'));
347 347
  $TMPL_VAR{ALL_SALESMEN}          = SL::DB::Manager::Employee->get_all_sorted(query => $employee_list_query_gen->('salesman_id'));
348
  $TMPL_VAR{ALL_SHIPTO}            = SL::DB::Manager::Shipto->get_all(query => [
348
  $TMPL_VAR{ALL_SHIPTO}            = SL::DB::Manager::Shipto->get_all_sorted(query => [
349 349
    or => [ trans_id  => $::form->{"$::form->{vc}_id"} * 1, and => [ shipto_id => $::form->{shipto_id} * 1, trans_id => undef ] ]
350 350
  ]);
351 351
  $TMPL_VAR{ALL_CONTACTS}          = SL::DB::Manager::Contact->get_all_sorted(query => [

Auch abrufbar als: Unified diff