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

(-)a/acqui/parcel.pl (-1 / +2 lines)
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
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-4 / +9 lines)
Lines 351-357 Link Here
351
          <th>Basket</th>
351
          <th>Basket</th>
352
          <th>Basket group</th>
352
          <th>Basket group</th>
353
          <th>Order line</th>
353
          <th>Order line</th>
354
          <th>Holds</th>
354
          <th title="Total holds / Item holds">Holds</th>
355
          <th>Summary</th>
355
          <th>Summary</th>
356
          <th>View record</th>
356
          <th>View record</th>
357
          <th>Quantity</th>
357
          <th>Quantity</th>
Lines 413-420 Link Here
413
                  [% END %]
413
                  [% END %]
414
                </td>
414
                </td>
415
                <td>
415
                <td>
416
                  [% IF order.holds > 0 %]
416
                  [% IF order.total_holds > 0 %]
417
                    <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.holds %]</a></span>
417
                    <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.total_holds %]</a></span>
418
                  [% ELSE %]
419
                    0
420
                  [% END %]
421
                  /
422
                  [% IF order.item_holds > 0 %]
423
                    <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.item_holds %]</a></span>
418
                  [% ELSE %]
424
                  [% ELSE %]
419
                    0
425
                    0
420
                  [% END %]
426
                  [% END %]
421
- 

Return to bug 19812