From: Bernd Bleßmann Date: Mon, 19 Jan 2015 11:07:13 +0000 (+0100) Subject: Beim Übergang Angebot/Auftrag auf Lieferschein/Rechnung orderitems_id_x löschen. X-Git-Tag: release-3.2.0beta~70 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=71a468999a06eb5f291cd2b39cc1645d06eb2f44;p=kivitendo-erp.git Beim Übergang Angebot/Auftrag auf Lieferschein/Rechnung orderitems_id_x löschen. --- 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);