[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
Mon Mar 13 18:18:20 CET 2023


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

--- Comment #18 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Jonathan Druart from comment #16)
> 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.

So, are you saying the simple 'unformat' call isn't working as we would
expect..

That's a shame :(

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


More information about the Koha-bugs mailing list