X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=284b2fe5d4fe2f105105d107371fa457d99877b5;hb=fec0904532e2136a1a769f568c351f4875257d56;hp=1fcc25cfe51acb893fe8f127066edd07d8246ea0;hpb=1c72997a75092b0be98d66884efea080acbb25b0;p=kivitendo-erp.git 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