[Koha-bugs] [Bug 34279] New: overduefinescap of 0 is ignored, but overduefinescap of 0.00 is enforced
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 14 13:28:08 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34279
Bug ID: 34279
Summary: overduefinescap of 0 is ignored, but overduefinescap
of 0.00 is enforced
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Circulation
Assignee: koha-bugs at lists.koha-community.org
Reporter: kyle at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
When creating a circ rule, we can set overduefinescap to blank or 0 and no cap
is enforced. If we edit that rule, the blank/0 is converted to "0.00" which
perl considers true, thus zero-ing out any calculated fine.
Considering we've always ignored an overdue fines cap of 0, we should also
ignore 0.00. However, perl is evaluating it as a string which makes it true
instead of false as 0 is.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list