Lines 142-148
for my $order ( @orders ) {
Link Here
|
142 |
$line{holds} = 0; |
142 |
$line{holds} = 0; |
143 |
my @itemnumbers = GetItemnumbersFromOrder( $order->{ordernumber} ); |
143 |
my @itemnumbers = GetItemnumbersFromOrder( $order->{ordernumber} ); |
144 |
my $biblio = Koha::Biblios->find( $line{biblionumber} ); |
144 |
my $biblio = Koha::Biblios->find( $line{biblionumber} ); |
145 |
$line{holds} = $biblio ? $biblio->current_holds->search( |
145 |
$line{total_holds} = $biblio ? $biblio->holds->count : 0; |
|
|
146 |
$line{item_holds} = $biblio ? $biblio->current_holds->search( |
146 |
{ |
147 |
{ |
147 |
itemnumber => { -in => \@itemnumbers }, |
148 |
itemnumber => { -in => \@itemnumbers }, |
148 |
} |
149 |
} |