X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdo.pl;h=7924b05a21c5d52c433423c447503d6aaef2ed88;hb=388a2ff5471adc27084f77e60fe154f25790dc9e;hp=b9cfc02ab6a804486ab5a84f0e0b492d74d6fe68;hpb=9f522077cdc739cbb17564f76e31e9b7ce7ab4f1;p=kivitendo-erp.git diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index b9cfc02ab..7924b05a2 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -364,10 +364,13 @@ sub update_delivery_order { } else { + my $mode; if ($form->{type} eq 'purchase_delivery_order') { IR->retrieve_item(\%myconfig, $form); + $mode = 'IR'; } else { IS->retrieve_item(\%myconfig, $form); + $mode = 'IS'; } my $rows = scalar @{ $form->{item_list} }; @@ -377,7 +380,7 @@ sub update_delivery_order { if ($rows > 1) { - select_item(); + select_item(mode => $mode); ::end_of_request(); } else { @@ -451,7 +454,7 @@ sub orders { my $form = $main::form; my %myconfig = %main::myconfig; my $locale = $main::locale; - my $cgi = $main::cgi; + my $cgi = $::request->{cgi}; ($form->{ $form->{vc} }, $form->{"$form->{vc}_id"}) = split(/--/, $form->{ $form->{vc} }); @@ -883,7 +886,7 @@ sub invoice_multi { $vc_discount = $form->{vendor_discount}; } else { IS->get_customer(\%myconfig, \%$form); - $vc_discount = $form->parse_amount(\%myconfig, $form->{customer_discount}); + $vc_discount = $form->{customer_discount}; } restore_form($saved_form);