[Koha-bugs] [Bug 11680] tax rate changes on edit
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 10 16:45:44 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11680
Galen Charlton <gmcharlt at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Passed QA |Needs Signoff
CC| |gmcharlt at gmail.com
--- Comment #11 from Galen Charlton <gmcharlt at gmail.com> ---
Setting back to needs signoff so that the follow-up can be tested.
A couple notes:
[1] The reason for the bug is that Template Toolkit's equality operator (==) is
implemented using the Perl 'eq' operator. If the comparison were numeric, then
0.2 == 0.20 evaluates to true
But since it's using 'eq',
'0.2' eq '0.20' is NOT true
The trick of adding 0.0 forces a normalization of the tax rate.
[2] It would be worth writing a subroutine for getting the list of tax rates.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list