From 71a468999a06eb5f291cd2b39cc1645d06eb2f44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 19 Jan 2015 12:07:13 +0100 Subject: [PATCH] =?utf8?q?Beim=20=C3=9Cbergang=20Angebot/Auftrag=20auf=20L?= =?utf8?q?ieferschein/Rechnung=20orderitems=5Fid=5Fx=20l=C3=B6schen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index faa9d3a70..3d5b8aeec 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1472,6 +1472,7 @@ sub invoice { # bo creates the id, reset it map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued); + delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; $form->{ $form->{vc} } =~ s/--.*//g; $form->{type} = "invoice"; @@ -1891,6 +1892,7 @@ sub delivery_order { # reset delete @{$form}{qw(id subject message cc bcc printed emailed queued creditlimit creditremaining discount tradediscount oldinvtotal closed delivered)}; + delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; for my $i (1 .. $form->{rowcount}) { map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } qw(ship qty sellprice listprice lastcost basefactor discount); -- 2.20.1