Revision 2b37ad3a
Von Jan Büren vor mehr als 7 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
413 | 413 |
@{ $form->{ALL_CHARTS} } |
414 | 414 |
); |
415 | 415 |
|
416 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
416 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
417 | 417 |
|
418 | 418 |
my %project_labels = (); |
419 | 419 |
foreach my $item (@{ $form->{"ALL_PROJECTS"} }) { |
bin/mozilla/ar.pl | ||
---|---|---|
310 | 310 |
# currencies |
311 | 311 |
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig); |
312 | 312 |
|
313 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
313 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
314 | 314 |
|
315 | 315 |
# build the popup menus |
316 | 316 |
$form->{taxincluded} = ($form->{id}) ? $form->{taxincluded} : "checked"; |
... | ... | |
371 | 371 |
"taxcharts" => { "key" => "ALL_TAXCHARTS", |
372 | 372 |
"module" => "AR" },); |
373 | 373 |
|
374 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
374 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
375 | 375 |
|
376 | 376 |
$_->{link_split} = { map { $_ => 1 } split/:/, $_->{link} } for @{ $form->{ALL_CHARTS} }; |
377 | 377 |
|
bin/mozilla/datev.pl | ||
---|---|---|
77 | 77 |
setup_datev_export2_action_bar(); |
78 | 78 |
|
79 | 79 |
$::form->header; |
80 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
80 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
81 | 81 |
print $::form->parse_html_template('datev/export_bewegungsdaten'); |
82 | 82 |
|
83 | 83 |
$::lxdebug->leave_sub; |
bin/mozilla/do.pl | ||
---|---|---|
412 | 412 |
$form->get_lists("price_factors" => "ALL_PRICE_FACTORS", |
413 | 413 |
"business_types" => "ALL_BUSINESS_TYPES", |
414 | 414 |
); |
415 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
415 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
416 | 416 |
|
417 | 417 |
# Projects |
418 | 418 |
my @old_project_ids = uniq grep { $_ } map { $_ * 1 } ($form->{"globalproject_id"}, map { $form->{"project_id_$_"} } 1..$form->{"rowcount"}); |
... | ... | |
647 | 647 |
"all" => 1 }, |
648 | 648 |
"business_types" => "ALL_BUSINESS_TYPES"); |
649 | 649 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]); |
650 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
650 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
651 | 651 |
$form->{title} = $locale->text('Delivery Orders'); |
652 | 652 |
|
653 | 653 |
setup_do_search_action_bar(); |
bin/mozilla/gl.pl | ||
---|---|---|
224 | 224 |
$form->{credit} = 0; |
225 | 225 |
$form->{tax} = 0; |
226 | 226 |
|
227 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
227 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
228 | 228 |
|
229 | 229 |
$form->{show_details} = $myconfig{show_form_details} unless defined $form->{show_details}; |
230 | 230 |
|
... | ... | |
245 | 245 |
|
246 | 246 |
$form->{amount} = $form->format_amount(\%myconfig, $form->{amount}, 2); |
247 | 247 |
|
248 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
248 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
249 | 249 |
|
250 | 250 |
my $i = 1; |
251 | 251 |
my $tax = 0; |
... | ... | |
336 | 336 |
projects => { key => "ALL_PROJECTS", all => 1 }, |
337 | 337 |
); |
338 | 338 |
$::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]); |
339 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
339 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
340 | 340 |
|
341 | 341 |
setup_gl_search_action_bar(); |
342 | 342 |
|
... | ... | |
1085 | 1085 |
|
1086 | 1086 |
# we cannot book on charttype header |
1087 | 1087 |
@{ $::form->{ALL_CHARTS} } = grep { $_->{charttype} ne 'H' } @{ $::form->{ALL_CHARTS} }; |
1088 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
|
1088 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
|
1089 | 1089 |
|
1090 | 1090 |
my $title = $::form->{title}; |
1091 | 1091 |
$::form->{title} = $::locale->text("$title General Ledger Transaction"); |
Auch abrufbar als: Unified diff
Abteilungs-Dropdown konsequent alphabetisch vorsortieren
$dep->get_all ==> $dep->get_all_sorted