[Koha-bugs] [Bug 24454] currency formatting from JS

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 31 14:16:46 CET 2020


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

--- Comment #5 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 98228
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98228&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

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list