[Koha-bugs] [Bug 7129] actual cost showing too many zeros
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 28 17:05:08 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7129
Colin Campbell <colin.campbell at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |colin.campbell at ptfs-europe.
| |com
Patch complexity|--- |Small patch
--- Comment #17 from Colin Campbell <colin.campbell at ptfs-europe.com> ---
Heres an approach using TT to format money amounts. At the top of the template
declare
[% USE money=format('%.2f') -%]
then in the body of the template when you want to display e.g. price use
[% money(price) %]
It takes the display logic out of the the cgi scripts ( a good thing) and
you've got an easier to maintain template
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list