[Koha-bugs] [Bug 33028] The decimal separator 'comma' and its consequences on the calculation of fines (crons)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 7 11:29:46 CET 2023


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

--- Comment #16 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I think this is wrong.

PriceFormat=US, edit a rule with "360,000" (meaning 360000), and "360.00" is
saved.

In my opinion we should keep things simple to avoid bugs, and don't try
anything else than warn the user that they are doing something wrong.

I would:
Run a dbrev to warn about incorrect values
Add a JS alert when the user is trying to save a rule that is not %.2f
formatted
Raise an exception in Koha::Circulation->store in case incorrect values arrived
there.

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


More information about the Koha-bugs mailing list