From b067e97477d44adb74212ddfb85282d2121e2467 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 9 Dec 2014 16:17:24 +0100 Subject: [PATCH] =?utf8?q?redundante=20actions=20/=20orderitems=20delete?= =?utf8?q?=20in=20oe.pl=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit nur einmal in sub poso alle orderitems_id löschen. ferner doppelte dispatch actions entfernt --- bin/mozilla/oe.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.20.1