From: Thomas Kasulke Date: Mon, 30 Apr 2007 13:40:46 +0000 (+0000) Subject: Lieferantenauswahlmenu angepasst, so dass nicht immer die komplette Auswahlliste... X-Git-Tag: release-2.4.3^2~415 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ccc290effb308a410a43a016c1b6d69fc16c7eb6;p=kivitendo-erp.git Lieferantenauswahlmenu angepasst, so dass nicht immer die komplette Auswahlliste mitgeschleppt werden muss. --- diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 1fcc25cfe..284b2fe5d 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -276,7 +276,8 @@ sub form_header { "old_id" => \@old_project_ids }, "taxzones" => "ALL_TAXZONES", "employees" => "ALL_SALESMEN", - "currencies" => "ALL_CURRENCIES"); + "currencies" => "ALL_CURRENCIES", + "vendors" => "ALL_VENDORS"); my %labels; my @values = (undef); @@ -318,7 +319,6 @@ sub form_header { |; - %labels = (); @values = (); my $i = 0; @@ -335,6 +335,21 @@ sub form_header { |; + %labels = (); + @values = (); + my $i = 0; + foreach my $item (@{ $form->{"ALL_VENDORS"} }) { + push(@values, $item->{name}.qq|--|.$item->{"id"}); + $labels{$item->{"id"}} = $item->{"name"}.qq|--|.$item->{"id"}; + } + my $vendors = qq| + | . $locale->text('Vendor') . qq| + | . + NTI($cgi->popup_menu('-name' => 'vendor', '-default' => $form->{"vendor"}, + '-onChange' => 'document.getElementById(\'update_button\').click();', + '-values' => \@values, '-labels' => \%labels)) . qq| + |; + %labels = (); @values = (); foreach my $item (@{ $form->{"ALL_TAXZONES"} }) { @@ -363,14 +378,6 @@ sub form_header { |; } - $vendor = - ($form->{selectvendor}) - ? qq|\n| - : qq||; - $department = qq| | . $locale->text('Department') . qq| @@ -459,15 +466,14 @@ onchange="document.getElementById('update_button').click();">| . - - - + $vendors - {vendor_id}> - + + +
| . $locale->text('Vendor') . qq|$vendor| . $locale->text('Contact Person') . qq| $contact