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

(-)a/acqui/basket.pl (-1 / +1 lines)
Lines 463-469 sub get_order_infos { Link Here
463
    my $ordernumber = $order->{'ordernumber'};
463
    my $ordernumber = $order->{'ordernumber'};
464
    my @subscriptions = GetSubscriptionsId ($biblionumber);
464
    my @subscriptions = GetSubscriptionsId ($biblionumber);
465
    my $itemcount = GetItemsCount($biblionumber);
465
    my $itemcount = GetItemsCount($biblionumber);
466
    my $holds_count = $biblio->holds->count;
466
    my $holds_count = $biblio ? $biblio->holds->count : 0;
467
    my @items = GetItemnumbersFromOrder( $ordernumber );
467
    my @items = GetItemnumbersFromOrder( $ordernumber );
468
    my $itemholds;
468
    my $itemholds;
469
    foreach my $item (@items){
469
    foreach my $item (@items){
(-)a/acqui/parcel.pl (-4 / +3 lines)
Lines 141-151 for my $order ( @orders ) { Link Here
141
    $line{holds} = 0;
141
    $line{holds} = 0;
142
    my @itemnumbers = GetItemnumbersFromOrder( $order->{ordernumber} );
142
    my @itemnumbers = GetItemnumbersFromOrder( $order->{ordernumber} );
143
    my $biblio = Koha::Biblios->find( $line{biblionumber} );
143
    my $biblio = Koha::Biblios->find( $line{biblionumber} );
144
    $line{holds} = $biblio->current_holds->search(
144
    $line{holds} = $biblio ? $biblio->current_holds->search(
145
        {
145
        {
146
            itemnumber => { -in => \@itemnumbers },
146
            itemnumber => { -in => \@itemnumbers },
147
        }
147
        }
148
    )->count;
148
    )->count : 0;
149
    $line{budget} = GetBudgetByOrderNumber( $line{ordernumber} );
149
    $line{budget} = GetBudgetByOrderNumber( $line{ordernumber} );
150
150
151
    $line{tax_value} = $line{tax_value_on_receiving};
151
    $line{tax_value} = $line{tax_value_on_receiving};
Lines 243-249 unless( defined $invoice->{closedate} ) { Link Here
243
        my $ordernumber = $line{'ordernumber'};
243
        my $ordernumber = $line{'ordernumber'};
244
        my @subscriptions = GetSubscriptionsId ($biblionumber);
244
        my @subscriptions = GetSubscriptionsId ($biblionumber);
245
        my $itemcount = GetItemsCount($biblionumber);
245
        my $itemcount = GetItemsCount($biblionumber);
246
        my $holds_count = $biblio->holds->count;
246
        my $holds_count = $biblio ? $biblio->holds->count : 0;
247
        my @items = GetItemnumbersFromOrder( $ordernumber );
247
        my @items = GetItemnumbersFromOrder( $ordernumber );
248
        my $itemholds;
248
        my $itemholds;
249
        foreach my $item (@items){
249
        foreach my $item (@items){
250
- 

Return to bug 17736