[Koha-bugs] [Bug 9374] In baskets, prices between 0 and 1 are displayed in red

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Sep 21 23:32:34 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9374

Galen Charlton <gmcharlt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gmcharlt at gmail.com

--- Comment #8 from Galen Charlton <gmcharlt at gmail.com> ---
Bugs 10792 and 10929 are somewhat related, as they touch on the general problem
of  displaying monetary amounts.

Jonathan's follow-up patch bandaids the situation, but would become awkward if
(say) the currency symbol started being displayed in the table.

The approach I'm proposing in my WIP branch for bug 10929 would instead just
pass the numeric currency amount to the template and rely on TT filters to
format it for display.  This, in turn, would mean that rather than having to
use delicate regexes to see if an amount is zero, the template could simply do
a numeric test.

I'll probably push the patches for this bug as is, but slap a FIXME on them, as
the currency formatting revamp will simplify the template logic.

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


More information about the Koha-bugs mailing list