View | Details | Raw Unified | Return to bug 20780
Collapse All | Expand All

(-)a/Koha/EDI.pm (-3 / +2 lines)
Lines 397-404 sub receipt_items { Link Here
397
        @affects = split q{\|},
397
        @affects = split q{\|},
398
          C4::Context->preference("AcqItemSetSubfieldsWhenReceived");
398
          C4::Context->preference("AcqItemSetSubfieldsWhenReceived");
399
        if (@affects) {
399
        if (@affects) {
400
            $biblionumber = $schema->resultset('Aqorder')->find($ordernumber)
400
            my $order = Koha::Acquisition::Orders->find($ordernumber);
401
              ->biblionumber->biblionumber;
401
            $biblionumber = $order->biblionumber;
402
            my $frameworkcode = GetFrameworkCode($biblionumber);
402
            my $frameworkcode = GetFrameworkCode($biblionumber);
403
            ($itemfield) = GetMarcFromKohaField( 'items.itemnumber',
403
            ($itemfield) = GetMarcFromKohaField( 'items.itemnumber',
404
                $frameworkcode );
404
                $frameworkcode );
405
- 

Return to bug 20780