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 194-200 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
194
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
194
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
195
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
195
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
196
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
196
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
197
('finesMode','test','off|test|production','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
197
('finesMode','off','off|production','Choose the fines mode, \'off\' (no charges), \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
198
('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'),
198
('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
('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'),
199
('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'),
200
('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'),
200
('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 854-860 Circulation: Link Here
854
              type: choice
854
              type: choice
855
              choices:
855
              choices:
856
                  off: "Don't calculate"
856
                  off: "Don't calculate"
857
                  test: Calculate (but only for mailing to the admin)
858
                  production: Calculate and charge
857
                  production: Calculate and charge
859
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
858
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
860
            - "<br><strong>NOTE:</strong> Fines can also be charged by the CalculateFinesOnReturn system preference."
859
            - "<br><strong>NOTE:</strong> Fines can also be charged by the CalculateFinesOnReturn system preference."
(-)a/misc/cronjobs/fines.pl (-1 / +1 lines)
Lines 57-63 my $usage = << 'ENDUSAGE'; Link Here
57
This script calculates and charges overdue fines
57
This script calculates and charges overdue fines
58
to patron accounts.  The Koha system preference 'finesMode' controls
58
to patron accounts.  The Koha system preference 'finesMode' controls
59
whether the fines are calculated and charged to the patron accounts ("Calculate and charge");
59
whether the fines are calculated and charged to the patron accounts ("Calculate and charge");
60
calculated and emailed to the admin but not applied ("Calculate (but only for mailing to the admin)"); or not calculated ("Don't calculate").
60
or not calculated ("Don't calculate").
61
61
62
This script has the following parameters :
62
This script has the following parameters :
63
    -h --help: this message
63
    -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