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

(-)a/installer/data/mysql/atomicupdate/bug_27835.perl (+10 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
4
    $dbh->do(q|
5
        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
6
        VALUES ('ChargeFinesOnCloseDay', '1', NULL, 'Charge fines on close day.', 'YesNo')
7
    |);
8
9
    NewVersion( $DBversion, 27835, "Add new system preference ChargeFinesOnCloseDay");
10
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 122-127 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
122
('casServerUrl','https://localhost:8443/cas','','URL of the cas server','Free'),
122
('casServerUrl','https://localhost:8443/cas','','URL of the cas server','Free'),
123
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
123
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
124
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
124
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
125
('ChargeFinesOnCloseDay','1',NULL,'Charge fines on close day.','YesNo')
125
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
126
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
126
('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'),
127
('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'),
127
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
128
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 / +7 lines)
Lines 969-975 Circulation: Link Here
969
                  off: "Don't calculate"
969
                  off: "Don't calculate"
970
                  production: Calculate and charge
970
                  production: Calculate and charge
971
            - fines (when <code>cronjobs/fines.pl</code> is being run).
971
            - fines (when <code>cronjobs/fines.pl</code> is being run).
972
            - '<br><strong>NOTE:</strong> If the cronjobs/fines.pl cronjob is being run, accruing and final fines will be calculated when the cron runs and accruing fines will be finalized when an item is returned. If <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=CalculateFinesOnReturn">CalculateFinesOnReturn</a> is enabled, final fines will be calculated when an item is returned.'
972
            - '<br><strong>NOTE:</strong> If the cronjobs/fines.pl cronjob is being run, accruing and final fines will be calculated when the cron runs and accruing fines will be finalized when an item is returned. If <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=CalculateFinesOnReturn">CalculateFinesOnReturn</a> is enabled, final fines will be calculated when an item is returned.<br/>'
973
            - pref: ChargeFinesOnCloseDay
974
              type: choice
975
              choices:
976
                  0: "Don't charge"
977
                  1: Charge
978
            - on close days. If set the fines.pl cronjob will not generate fines when run on days marked as closed in the calendar.
973
        -
979
        -
974
            - If a lost item is returned, apply the refunding rules defined for the
980
            - If a lost item is returned, apply the refunding rules defined for the
975
            - pref: RefundLostOnReturnControl
981
            - pref: RefundLostOnReturnControl
976
- 

Return to bug 27835