[Koha-bugs] [Bug 24454] currency formatting from JS
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 17 21:55:22 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24454
--- Comment #1 from AgustÃn Moyano <agustinmoyano at theke.io> ---
Created attachment 97573
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97573&action=edit
Bug 24454: Add Currencies.pm template plugin and currency.inc files
This patch adds a new TT plugin called Currencies which retrieves information
about the active currency.
It also adds a currency.inc file in both opac and intranet, which if included
in your TT, you will have the $currency function available in JS.
The $currency function formats numbers into the configured active currency
format.
For example:
$currency(12322.4532) //Returns '$12,322.45' if currency format is 'US' and
active currency has '$' symbol and no space separation.
To test you must implement and test bug 20212, where it will be used
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list