X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdo.pl;h=54c650c313e5c78f4ab3ee0ee894113abc578859;hb=cb25314000db992f8b413d10a0d20f0e80b4b677;hp=b9cfc02ab6a804486ab5a84f0e0b492d74d6fe68;hpb=251dc385d50e0aeddbdd47c5b472cc45525647db;p=kivitendo-erp.git diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index b9cfc02ab..54c650c31 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 { @@ -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);