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

(-)a/installer/data/mysql/atomicupdate/bug_21633_remove_finesMode_test.perl (+14 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        UPDATE systempreferences SET value = 'off'
5
        WHERE variable = 'finesMode' and value = 'test'
6
    });
7
    $dbh->do(q{
8
        UPDATE systempreferences SET options = 'off|production',
9
        explanation = "Choose the fines mode, 'off' (do not accrue fines) or 'production' (accrue overdue fines).  Requires accruefines cronjob or CalculateFinesOnReturn system preference."
10
        WHERE variable = 'finesMode'
11
    });
12
    SetVersion( $DBversion );
13
    print "Upgrade to $DBversion done (Bug 21633  - Remove finesMode 'test')\n";
14
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 195-201 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
195
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
195
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
196
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
196
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
197
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
197
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
198
('finesMode','test','off|test|production','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
198
('finesMode','off','off|production','Choose the fines mode, \'off\' (no charges), \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
199
('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
199
('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
200
('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'),
200
('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'),
201
('gist','0','','Default Goods and Services tax rate NOT in %, but in numeric form (0.12 for 12%), set to 0 to disable GST','Integer'),
201
('gist','0','','Default Goods and Services tax rate NOT in %, but in numeric form (0.12 for 12%), set to 0 to disable GST','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 lines)
Lines 861-867 Circulation: Link Here
861
              type: choice
861
              type: choice
862
              choices:
862
              choices:
863
                  off: "Don't calculate"
863
                  off: "Don't calculate"
864
                  test: Calculate (but only for mailing to the admin)
865
                  production: Calculate and charge
864
                  production: Calculate and charge
866
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
865
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
867
            - "<br><strong>NOTE:</strong> Fines can also be charged by the CalculateFinesOnReturn system preference."
866
            - "<br><strong>NOTE:</strong> Fines can also be charged by the CalculateFinesOnReturn system preference."
(-)a/misc/cronjobs/fines.pl (-1 / +1 lines)
Lines 59-65 my $usage = << 'ENDUSAGE'; Link Here
59
This script calculates and charges overdue fines
59
This script calculates and charges overdue fines
60
to patron accounts.  The Koha system preference 'finesMode' controls
60
to patron accounts.  The Koha system preference 'finesMode' controls
61
whether the fines are calculated and charged to the patron accounts ("Calculate and charge");
61
whether the fines are calculated and charged to the patron accounts ("Calculate and charge");
62
calculated and emailed to the admin but not applied ("Calculate (but only for mailing to the admin)"); or not calculated ("Don't calculate").
62
or not calculated ("Don't calculate").
63
63
64
This script has the following parameters :
64
This script has the following parameters :
65
    -h --help: this message
65
    -h --help: this message
(-)a/misc/cronjobs/staticfines.pl (-2 lines)
Lines 76-82 my $usage = << 'ENDUSAGE'; Link Here
76
This script calculates and charges overdue fines to patron accounts.
76
This script calculates and charges overdue fines to patron accounts.
77
77
78
If the Koha System Preference 'finesMode' is set to 'production', the fines are charged to the patron accounts.
78
If the Koha System Preference 'finesMode' is set to 'production', the fines are charged to the patron accounts.
79
If set to 'test', the fines are calculated but not applied.
80
79
81
Please note that the fines won't be applied on a holiday.
80
Please note that the fines won't be applied on a holiday.
82
81
83
- 

Return to bug 21633