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 342-347 Circulation: Link Here
342
                  confirmation: Ask for confirmation
342
                  confirmation: Ask for confirmation
343
            - when checking out to a borrower that has overdues outstanding	    
343
            - when checking out to a borrower that has overdues outstanding	    
344
        -
344
        -
345
            - By default, set the LOST value of an item to
346
            - pref: DefaultLongOverdueLostValue
347
              class: integer
348
            - when the item has been overdue for more than
349
            - pref: DefaultLongOverdueDays
350
              class: integer
351
            - days.
352
            - <br>WARNING — These preferences will activate the automatic item loss process. Leave these fields empty if you don't want to activate this feature.
353
            - "<br>Example: [1] [30] Sets an item to the LOST value 1 when it has been overdue for more than 30 days."
354
            - <br>(Used when the longoverdue.pl script is called without the --lost parameter)
355
        -
356
            - "Charge a lost item to the borrower's account when the LOST value of the item changes to :"
357
            - pref: DefaultLongOverdueChargeValue
358
              class: integer
359
            - <br>Leave this field empty if you don't want to charge the user for lost items.
360
            - <br>(Used when the longoverdue.pl script is called without the --charge parameter)
361
        -
345
            - On checkin route the returned item to
362
            - On checkin route the returned item to
346
            - pref: HomeOrHoldingBranchReturn
363
            - pref: HomeOrHoldingBranchReturn
347
              type: choice
364
              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