Lines 1112-1123
sub article_request_type {
Link Here
|
1112 |
sub current_holds { |
1112 |
sub current_holds { |
1113 |
my ( $self ) = @_; |
1113 |
my ( $self ) = @_; |
1114 |
my $attributes = { order_by => 'priority' }; |
1114 |
my $attributes = { order_by => 'priority' }; |
1115 |
my $dtf = Koha::Database->new->schema->storage->datetime_parser; |
1115 |
my $dtf = Koha::Database->new->schema->storage->datetime_parser; |
1116 |
my $params = { |
1116 |
my $dt = dt_from_string()->add( days => C4::Context->preference('ConfirmFutureHolds') || 0 ); |
|
|
1117 |
my $params = { |
1117 |
itemnumber => $self->itemnumber, |
1118 |
itemnumber => $self->itemnumber, |
1118 |
suspend => 0, |
1119 |
suspend => 0, |
1119 |
-or => [ |
1120 |
-or => [ |
1120 |
reservedate => { '<=' => $dtf->format_date(dt_from_string) }, |
1121 |
reservedate => { '<=' => $dtf->format_date($dt) }, |
1121 |
waitingdate => { '!=' => undef }, |
1122 |
waitingdate => { '!=' => undef }, |
1122 |
], |
1123 |
], |
1123 |
}; |
1124 |
}; |
1124 |
- |
|
|