Revision ed14204d
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
453 | 453 |
|
454 | 454 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", |
455 | 455 |
"all" => 1 }, |
456 |
"departments" => "ALL_DEPARTMENTS", |
|
456 | 457 |
"$form->{vc}s" => "ALL_VC"); |
457 | 458 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
458 | 459 |
|
... | ... | |
477 | 478 |
my $locale = $main::locale; |
478 | 479 |
my $cgi = $::request->{cgi}; |
479 | 480 |
|
481 |
$form->{department_id} = (split /--/, $form->{department})[-1]; |
|
480 | 482 |
($form->{ $form->{vc} }, $form->{"$form->{vc}_id"}) = split(/--/, $form->{ $form->{vc} }); |
481 | 483 |
|
482 | 484 |
report_generator_set_default_sort('transdate', 1); |
... | ... | |
491 | 493 |
ordnumber customernumber |
492 | 494 |
name employee salesman |
493 | 495 |
shipvia globalprojectnumber |
494 |
transaction_description |
|
496 |
transaction_description department
|
|
495 | 497 |
open delivered |
496 | 498 |
); |
497 | 499 |
|
... | ... | |
525 | 527 |
'transaction_description' => { 'text' => $locale->text('Transaction description'), }, |
526 | 528 |
'open' => { 'text' => $locale->text('Open'), }, |
527 | 529 |
'delivered' => { 'text' => $locale->text('Delivered'), }, |
530 |
'department' => { 'text' => $locale->text('Department'), }, |
|
528 | 531 |
); |
529 | 532 |
|
530 |
foreach my $name (qw(id transdate donumber ordnumber name employee salesman shipvia transaction_description)) { |
|
533 |
foreach my $name (qw(id transdate donumber ordnumber name employee salesman shipvia transaction_description department)) {
|
|
531 | 534 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
532 | 535 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
533 | 536 |
} |
Auch abrufbar als: Unified diff
Suche nach und Anzeige von Abteilungen bei Lieferscheinsuche
Implementiert #1952.