From ef14119849f295563473f9c66bdeb941a6553b52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 15 Dec 2014 09:17:10 +0100 Subject: [PATCH] =?utf8?q?orderitems=20persistent=20teil=20III=20IMMER=20d?= =?utf8?q?ie=20orderitems=5Fid=20in=20sub=20poso=20l=C3=B6schen,=20nicht?= =?utf8?q?=20nur=20in=20der=20if-bedingung=20Angebot=20->=20Auftrag=20i.O.?= =?utf8?q?=20Auftrag=20-=20>=20Angebot=20i.O.=20Kundenauftrag=20->=20Liefe?= =?utf8?q?rantenauftrag=20i.O.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index e3de08585..ad5406c90 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1816,6 +1816,7 @@ sub poso { # reset map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued customer vendor creditlimit creditremaining discount tradediscount oldinvtotal delivered ordnumber); + delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; # always reset orderitems_id # if purchase_order was generated from sales_order, use lastcost_$i as sellprice_$i # also reset discounts @@ -1823,7 +1824,6 @@ sub poso { for my $i (1 .. $form->{rowcount}) { $form->{"sellprice_${i}"} = $form->{"lastcost_${i}"}; $form->{"discount_${i}"} = 0; - delete $form->{"orderitems_id_$_"}; }; }; -- 2.20.1