From: Thomas Kasulke Date: Mon, 30 Apr 2007 13:13:01 +0000 (+0000) Subject: Bearbeiter-Popup eingefügt X-Git-Tag: release-2.4.3^2~419 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1c72997a75092b0be98d66884efea080acbb25b0;p=kivitendo-erp.git Bearbeiter-Popup eingefügt --- 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 +
| . $locale->text('Total') . qq| $form->{invtotal}