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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+17 lines)
Lines 298-303 Circulation: Link Here
298
                  confirmation: Ask for confirmation
298
                  confirmation: Ask for confirmation
299
            - when checking out to a borrower that has overdues outstanding	    
299
            - when checking out to a borrower that has overdues outstanding	    
300
        -
300
        -
301
            - By default, set the LOST value of an item to 
302
            - pref: DefaultLongOverdueLostValue
303
              class: integer
304
            - when the item has been overdue for more than 
305
            - pref: DefaultLongOverdueDays
306
              class: integer
307
            - days.
308
            - <br>WARNING — These preferences will activate the automatic item loss process. Leave these fields empty if you don't want to activate this feature.
309
            - "<br>Example: [1] [30] Sets an item to the LOST value 1 when it has been overdue for more than 30 days."
310
            - <br>(Used when the longoverdue.pl script is called without the --lost parameter)
311
        -
312
            - "Charge a lost item to the borrower's account when the LOST value of the item changes to :"
313
            - pref: DefaultLongOverdueChargeValue
314
              class: integer
315
            - <br>Leave this field empty if you don't want to charge the user for lost items.
316
            - <br>(Used when the longoverdue.pl script is called without the --charge parameter)
317
        -
301
            - On checkin route the returned item to
318
            - On checkin route the returned item to
302
            - pref: HomeOrHoldingBranchReturn
319
            - pref: HomeOrHoldingBranchReturn
303
              type: choice
320
              type: choice
(-)a/misc/cronjobs/longoverdue.pl (-3 / +15 lines)
Lines 108-115 ENDUSAGE Link Here
108
# FIXME: allow --help or -h
108
# FIXME: allow --help or -h
109
# 
109
# 
110
if ( ! defined($lost) ) {
110
if ( ! defined($lost) ) {
111
    print $usage;
111
    my $longoverdue_value = C4::Context->preference('DefaultLongOverdueLostValue');
112
    die "ERROR: No --lost (-l) option defined";
112
    my $longoverdue_days = C4::Context->preference('DefaultLongOverdueDays');
113
    if(defined($longoverdue_value) and defined($longoverdue_days) and $longoverdue_value ne '' and $longoverdue_days ne '' and $longoverdue_days >= 0) {
114
        $lost->{$longoverdue_days} = $longoverdue_value;
115
    }
116
    else {
117
        print $usage;
118
        die "ERROR: No --lost (-l) option defined";
119
    }
120
}
121
if ( ! defined($charge) ) {
122
    my $charge_value = C4::Context->preference('DefaultLongOverdueChargeValue');
123
    if(defined($charge_value) and $charge_value ne '') {
124
        $charge = $charge_value;
125
    }
113
}
126
}
114
unless ($confirm) {
127
unless ($confirm) {
115
    $verbose = 1;     # If you're not running it for real, then the whole point is the print output.
128
    $verbose = 1;     # If you're not running it for real, then the whole point is the print output.
116
- 

Return to bug 8337