From 83a84630860795e669387cd3b15652f0563684d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 15 Aug 2019 12:39:05 +0200 Subject: [PATCH] Workflow Lieferantenauftrag->Kreditorenbuchung: mini Performance-Optimierung MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Später benötigte Relationen direkt mit laden. Dank an Geoffrey. --- bin/mozilla/ap.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index bba2af4c0..ed4d86439 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1189,7 +1189,7 @@ sub add_from_purchase_order { return if !$::form->{id}; my $order_id = delete $::form->{id}; - my $order = SL::DB::Order->new(id => $order_id)->load; + my $order = SL::DB::Order->new(id => $order_id)->load(with => [ 'vendor', 'currency', 'payment_terms' ]); return if $order->type ne 'purchase_order'; -- 2.20.1