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

(-)a/C4/SIP/ILS/Item.pm (-2 / +8 lines)
Lines 28-33 use Koha::Checkouts; Link Here
28
use Koha::DateUtils;
28
use Koha::DateUtils;
29
use Koha::Patrons;
29
use Koha::Patrons;
30
use Koha::Items;
30
use Koha::Items;
31
use Koha::Holds;
31
32
32
=encoding UTF-8
33
=encoding UTF-8
33
34
Lines 325-331 sub recall_date { Link Here
325
}
326
}
326
sub hold_pickup_date {
327
sub hold_pickup_date {
327
    my $self = shift;
328
    my $self = shift;
328
    return $self->{hold_pickup_date} || 0;
329
330
    my $hold = Koha::Holds->find({ itemnumber => $self->{itemnumber}, found => 'W' });
331
    if ( $hold ) {
332
        return $hold->expirationdate || 0;
333
    }
334
335
    return 0;
329
}
336
}
330
337
331
# This is a partial check of "availability".  It is not supposed to check everything here.
338
# This is a partial check of "availability".  It is not supposed to check everything here.
332
- 

Return to bug 19619