Lines 136-142
if ( $op eq 'delete_confirm' ) {
Link Here
|
136 |
foreach my $myorder (@orders){ |
136 |
foreach my $myorder (@orders){ |
137 |
my $biblionumber = $myorder->{'biblionumber'}; |
137 |
my $biblionumber = $myorder->{'biblionumber'}; |
138 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
138 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
139 |
my $countbiblio = $biblio->active_orders_count; |
139 |
my $countbiblio = $biblio->active_orders->count; |
140 |
my $ordernumber = $myorder->{'ordernumber'}; |
140 |
my $ordernumber = $myorder->{'ordernumber'}; |
141 |
my $cnt_subscriptions = $biblio->subscriptions->count; |
141 |
my $cnt_subscriptions = $biblio->subscriptions->count; |
142 |
my $itemcount = $biblio->items->count; |
142 |
my $itemcount = $biblio->items->count; |
Lines 477-483
sub get_order_infos {
Link Here
|
477 |
my $biblionumber = $order->{'biblionumber'}; |
477 |
my $biblionumber = $order->{'biblionumber'}; |
478 |
if ( $biblionumber ) { # The biblio still exists |
478 |
if ( $biblionumber ) { # The biblio still exists |
479 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
479 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
480 |
my $countbiblio = $biblio->active_orders_count; |
480 |
my $countbiblio = $biblio->active_orders->count; |
481 |
|
481 |
|
482 |
my $ordernumber = $order->{'ordernumber'}; |
482 |
my $ordernumber = $order->{'ordernumber'}; |
483 |
my $cnt_subscriptions = $biblio->subscriptions->count; |
483 |
my $cnt_subscriptions = $biblio->subscriptions->count; |