From: Jan Büren Date: Mon, 15 Dec 2014 08:17:10 +0000 (+0100) Subject: orderitems persistent teil III X-Git-Tag: release-3.2.0beta~187 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ef14119849f295563473f9c66bdeb941a6553b52;p=kivitendo-erp.git orderitems persistent teil III IMMER die orderitems_id in sub poso löschen, nicht nur in der if-bedingung Angebot -> Auftrag i.O. Auftrag - > Angebot i.O. Kundenauftrag -> Lieferantenauftrag i.O. --- 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_$_"}; }; };