From 93957d047e1fd82b595ee430ea79d7bb57f98bd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 15 Oct 2018 16:34:25 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Variable=20besser=20benen?= =?utf8?q?nen=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit bin drüber gestolpert, weil ich gesucht habe, wo im Workflow -> Auftrag die Verknüpfungen gespeichert werden. Wg. $quo nahm ich an, dass es hier nur um Angebote geht. --- SL/Controller/Order.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 894f119ed..0144529d5 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1405,11 +1405,11 @@ sub save { # link records if ($::form->{converted_from_oe_id}) { - my $quo = SL::DB::Order->new(id => $::form->{converted_from_oe_id})->load; + my $src = SL::DB::Order->new(id => $::form->{converted_from_oe_id})->load; # implement OE::_close_quotations_rfqs - this a 1 : 1 connection # close only if workflow: quotation -> order. TODO test case - $quo->update_attributes(closed => 1) if $quo->type =~ /_quotation$/; - $quo->link_to_record($self->order); + $src->update_attributes(closed => 1) if $src->type =~ /_quotation$/; + $src->link_to_record($self->order); if (scalar @{ $::form->{converted_from_orderitems_ids} || [] }) { my $idx = 0; -- 2.20.1