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

(-)a/acqui/orderreceive.pl (-1 / +1 lines)
Lines 128-134 if ($AcqCreateItem eq 'receiving') { Link Here
128
    );
128
    );
129
} elsif ($AcqCreateItem eq 'ordering') {
129
} elsif ($AcqCreateItem eq 'ordering') {
130
    my $fw = ($acq_fw) ? 'ACQ' : '';
130
    my $fw = ($acq_fw) ? 'ACQ' : '';
131
    my @itemnumbers = $order_object->items->get_column('itemnumbers');
131
    my @itemnumbers = $order_object->items->get_column('itemnumber');
132
    my @items;
132
    my @items;
133
    foreach (@itemnumbers) {
133
    foreach (@itemnumbers) {
134
        my $item = GetItem($_); # FIXME We do not need this call, we already have the Koha::Items
134
        my $item = GetItem($_); # FIXME We do not need this call, we already have the Koha::Items
(-)a/acqui/parcel.pl (-3 / +2 lines)
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
- 

Return to bug 21205