From: Jan Büren Date: Tue, 9 Dec 2014 15:17:24 +0000 (+0100) Subject: redundante actions / orderitems delete in oe.pl gelöscht X-Git-Tag: release-3.2.0beta~194 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b067e97477d44adb74212ddfb85282d2121e2467;p=kivitendo-erp.git redundante actions / orderitems delete in oe.pl gelöscht nur einmal in sub poso alle orderitems_id löschen. ferner doppelte dispatch actions entfernt --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 66b2dbaa8..50e6b35f3 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1811,7 +1811,6 @@ 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"}; # if purchase_order was generated from sales_order, use lastcost_$i as sellprice_$i # also reset discounts @@ -2104,8 +2103,8 @@ sub check_transport_cost_reminder_article_number { $main::lxdebug->leave_sub(); } sub dispatcher { - foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation - request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) { + foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order quotation + request_for_quotation sales_order save save_and_close save_as_new ship_to update)) { if ($::form->{"action_${action}"}) { call_sub($action); return;