From df32a48c27d129bbb5aa03181e58ae2c525a74b3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 31 Oct 2018 14:41:12 +0000 Subject: [PATCH] Bug 20780: (follow-up) Use Koha::Object Signed-off-by: Brendan Gallagher Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- Koha/EDI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index 6af28b5ce7..f1a844a2c4 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -397,8 +397,8 @@ sub receipt_items { @affects = split q{\|}, C4::Context->preference("AcqItemSetSubfieldsWhenReceived"); if (@affects) { - $biblionumber = $schema->resultset('Aqorder')->find($ordernumber) - ->biblionumber->biblionumber; + my $order = Koha::Acquisition::Orders->find($ordernumber); + $biblionumber = $order->biblionumber; my $frameworkcode = GetFrameworkCode($biblionumber); ($itemfield) = GetMarcFromKohaField( 'items.itemnumber', $frameworkcode ); -- 2.39.5