From 2aa0c533f4651d03cda211286ef0f7f8402ce25a Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 12 Jan 2015 15:35:18 +0000 Subject: [PATCH] Bug 7736 Supplemental : branch is not saved in basket Although branch is the foreign key from basket to branches it is no longer created on basket add/update Use deliveryplace as the location for orderlines when we do not create items prior to receipt --- Koha/Edifact/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Edifact/Order.pm b/Koha/Edifact/Order.pm index 9185268..55527ec 100644 --- a/Koha/Edifact/Order.pm +++ b/Koha/Edifact/Order.pm @@ -371,7 +371,7 @@ sub order_line { itemtype => $biblioitem->itemtype, shelfmark => $biblioitem->cn_class, }; - my $branch = $orderline->basketno->branch->branchcode; + my $branch = $orderline->basketno->deliveryplace; if ($branch) { $item_hash->{branch} = $branch; } -- 2.1.0