Bug 20780: (follow-up) Use Koha::Object

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2018-10-31 14:41:12 +00:00
parent 8a579e5c61
commit df32a48c27
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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 );