[Koha-bugs] [Bug 20352] Add ability of currency/price to have a symbol after amount

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 18 12:05:51 CET 2019


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

--- Comment #4 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 96412
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96412&action=edit
Bug 20352: Add the ability to chose the position of the currency

This patch mimicks what has been done for p_sep_by_space to add a space
separation between the symbol and the value.
Here we are adding p_cs_precedes to display the symbol before or after
the value.
Note that so far the symbol is only displayed in one place at the OPAC
(opac-main)

Test plan:
- Create a manual invoice for a patron
- Edit the active currency, select 'Before' (should be the default here)
- Use the charged patron to login at the OPAC
=> On the mainpage you should see the charges displayed, with the symbol
before the value
- Edit the active currency, select 'After'
=> The symbol is now positionned after the value

QA note:
>From https://www.gnu.org/software/libc/manual/html_node/Currency-Symbol.html
p_cs_precedes is only used for positive amount, n_cs_precedes should be
used for negative. Here we are assuming that positive and negative
amounts are displayed the same way.

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


More information about the Koha-bugs mailing list