From a553a4dcd6941266b5f6e444ec08a4002db6c4bd Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 9 Dec 2021 13:55:41 +0000 Subject: [PATCH] Bug 29670: Fix EDI for AcqCreateItem = 'placing on order' The AcqCreatItem at order time functionality was broken by bug 27708. This patch resolves that. --- Koha/Edifact/Order.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Edifact/Order.pm b/Koha/Edifact/Order.pm index 87e16fce99..8d8e3c5957 100644 --- a/Koha/Edifact/Order.pm +++ b/Koha/Edifact/Order.pm @@ -389,10 +389,10 @@ sub order_line { my $i_obj = $schema->resultset('Item')->find( $item->itemnumber ); if ( defined $i_obj ) { push @items, { - branchcode => $item->{branchcode}, - itype => $item->{itype}, - location => $item->{location}, - itemcallnumber => $item->{itemcallnumber}, + branchcode => $i_obj->{branchcode}, + itype => $i_obj->{itype}, + location => $i_obj->{location}, + itemcallnumber => $i_obj->{itemcallnumber}, }; } } -- 2.20.1