From 1c72997a75092b0be98d66884efea080acbb25b0 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Mon, 30 Apr 2007 13:13:01 +0000 Subject: [PATCH] =?utf8?q?Bearbeiter-Popup=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ir.pl | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 9f40930e8..1fcc25cfe 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -223,7 +223,7 @@ sub form_header { $lxdebug->enter_sub(); # set option selected - foreach $item (qw(AP vendor currency department)) { + foreach $item (qw(AP vendor currency department employee)) { $form->{"select$item"} =~ s/ selected//; $form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; @@ -275,6 +275,7 @@ sub form_header { "all" => 0, "old_id" => \@old_project_ids }, "taxzones" => "ALL_TAXZONES", + "employees" => "ALL_SALESMEN", "currencies" => "ALL_CURRENCIES"); my %labels; @@ -316,6 +317,23 @@ sub form_header { '-values' => \@values, '-labels' => \%labels)) . qq| |; + + + %labels = (); + @values = (); + my $i = 0; + foreach my $item (@{ $form->{"ALL_SALESMEN"} }) { + push(@values, $item->{"id"}); + $labels{$item->{"id"}} = $item->{"name"}; + } + my $employees = qq| + + | . $locale->text('Employee') . qq| + | . + NTI($cgi->popup_menu('-name' => 'employee', '-default' => $form->{"employee"}, + '-values' => \@values, '-labels' => \%labels)) . qq| + + |; %labels = (); @values = (); @@ -349,15 +367,15 @@ sub form_header { ($form->{selectvendor}) ? qq|\n| - : qq||; + : qq||; $department = qq| | . $locale->text('Department') . qq| - - + + | if $form->{selectdepartment}; @@ -450,11 +468,10 @@ onchange="document.getElementById('update_button').click();">| . {vendor_id}> - - + @@ -464,11 +481,11 @@ onchange="document.getElementById('update_button').click();">| .
| . $locale->text('Credit Limit') . qq|$form->{creditremaining}
- + - | . $locale->text('Record in') . qq| - - + | . $locale->text('Record in') . qq| + + $taxzone $department @@ -480,7 +497,8 @@ onchange="document.getElementById('update_button').click();">| . - + $employees + @@ -663,7 +681,7 @@ sub form_footer {
| . $locale->text('Invoice Number') . qq|
$subtotal $tax - 0 + -- 2.20.1
| . $locale->text('Total') . qq| $form->{invtotal}