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

(-)a/Koha/Holds.pm (-1 / +1 lines)
Lines 46-52 returns a set of holds that are waiting from an existing set Link Here
46
sub waiting {
46
sub waiting {
47
    my ( $self ) = @_;
47
    my ( $self ) = @_;
48
48
49
    return $self->search( { found => 'w' } );
49
    return $self->search( { found => 'W' } );
50
}
50
}
51
51
52
=head3 unfilled
52
=head3 unfilled
(-)a/misc/cronjobs/holds/cancel_unfilled_holds.pl (-4 / +5 lines)
Lines 39-54 cronlogaction(); Link Here
39
39
40
=head1 NAME
40
=head1 NAME
41
41
42
cancel_waiting_holds.pl
42
cancel_unfilled_holds.pl
43
43
44
=head1 SYNOPSIS
44
=head1 SYNOPSIS
45
45
46
cancel_waiting_holds.pl
46
cancel_unfilled_holds.pl
47
    [-days][-library][-holidays]
47
    [-days][-library][-holidays]
48
48
49
 Options:
49
 Options:
50
    -help                       brief help
50
    -help                       brief help
51
    -days                       cancel holds waiting this many days
51
    -days                       cancel holds placed this many days ago which have not been filled
52
    -library                    [repeatable] limit to specified branch(es)
52
    -library                    [repeatable] limit to specified branch(es)
53
    -holidays                   skip holidays when calculating days waiting
53
    -holidays                   skip holidays when calculating days waiting
54
    -v                          verbose
54
    -v                          verbose
Lines 67-73 Print full documentation and exit. Link Here
67
67
68
=item B<-days>
68
=item B<-days>
69
69
70
Specify the number of days waiting upon which to cancel holds.
70
Specify the number of days waiting since a hold that remains unfilled was placed.
71
E.g. a value of 730 would cancel holds placed 2 years ago or more that have never been filled
71
72
72
=item B<-library>
73
=item B<-library>
73
74
(-)a/t/db_dependent/Holds.t (-2 / +1 lines)
Lines 7-13 use t::lib::TestBuilder; Link Here
7
7
8
use C4::Context;
8
use C4::Context;
9
9
10
use Test::More tests => 59;
10
use Test::More tests => 54;
11
use MARC::Record;
11
use MARC::Record;
12
use C4::Biblio;
12
use C4::Biblio;
13
use C4::Items;
13
use C4::Items;
14
- 

Return to bug 16187