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:
parent
8a579e5c61
commit
df32a48c27
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue