Lines 140-146
for my $order ( @orders ) {
Link Here
|
140 |
|
140 |
|
141 |
my %line = %{ $order }; |
141 |
my %line = %{ $order }; |
142 |
$line{invoice} = $invoice->{invoicenumber}; |
142 |
$line{invoice} = $invoice->{invoicenumber}; |
143 |
my @itemnumbers = $order_object->items->get_column('itemnumbers'); |
143 |
my @itemnumbers = $order_object->items->get_column('itemnumber'); |
144 |
my $biblio = Koha::Biblios->find( $line{biblionumber} ); |
144 |
my $biblio = Koha::Biblios->find( $line{biblionumber} ); |
145 |
$line{total_holds} = $biblio ? $biblio->holds->count : 0; |
145 |
$line{total_holds} = $biblio ? $biblio->holds->count : 0; |
146 |
$line{item_holds} = $biblio ? $biblio->current_holds->search( |
146 |
$line{item_holds} = $biblio ? $biblio->current_holds->search( |
Lines 247-253
unless( defined $invoice->{closedate} ) {
Link Here
|
247 |
my $cnt_subscriptions = $biblio ? $biblio->subscriptions->count: 0; |
247 |
my $cnt_subscriptions = $biblio ? $biblio->subscriptions->count: 0; |
248 |
my $itemcount = $biblio ? $biblio->items->count : 0; |
248 |
my $itemcount = $biblio ? $biblio->items->count : 0; |
249 |
my $holds_count = $biblio ? $biblio->holds->count : 0; |
249 |
my $holds_count = $biblio ? $biblio->holds->count : 0; |
250 |
my @itemnumbers = $order_object->items->get_column('itemnumbers'); |
250 |
my @itemnumbers = $order_object->items->get_column('itemnumber'); |
251 |
my $itemholds = $biblio ? $biblio->holds->search({ itemnumber => { -in => \@itemnumbers } })->count : 0; |
251 |
my $itemholds = $biblio ? $biblio->holds->search({ itemnumber => { -in => \@itemnumbers } })->count : 0; |
252 |
|
252 |
|
253 |
my $suggestion = GetSuggestionInfoFromBiblionumber($line{biblionumber}); |
253 |
my $suggestion = GetSuggestionInfoFromBiblionumber($line{biblionumber}); |
254 |
- |
|
|