[Koha-bugs] [Bug 27835] Closed days offsets with one day

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 16 23:17:17 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27835

--- Comment #28 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I have looked at the code and I believe these patches will fix the issue, but
sadly couldn't test them properly :(

Only thing. I believe we should restore the former behaviour so there is no
behaviour change for most people on update. I think this would mean changing
the default for the pref to 0 = Don't charge on closed days.

+$DBversion = 'XXX'; # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+
+    $dbh->do(q|
+        INSERT IGNORE INTO systempreferences
(variable,value,options,explanation,type)
+        VALUES ('ChargeFinesOnCloseDay', '1', NULL, 'Charge fines on close
day.', 'YesNo')
+    |);
+
+    NewVersion( $DBversion, 27835, "Add new system preference
ChargeFinesOnCloseDay");
+}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list