[Koha-bugs] [Bug 21507] Decimal separators issues in patrons payments/fines, simplified

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 1 18:04:48 CEST 2021


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

--- Comment #11 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
> 2. Work backwards to find if we have decimal digits (i.e. 2 digits after either a comma or dot)
> 3. If we find a decimal delimiter, drop the opposit delimiter from the string (i.e. if we find a dot then drop any comma's.. if we find a comma, drop any dots)

This works thanks to relying on having two decimal digits right? No less, no
more. Which is fine, it's already soooo hard as it is.

This looks great, it seems to cover all of the cases and the logic is quite
simple, amazing algorithm that your have found there!!!!

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


More information about the Koha-bugs mailing list