[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
Fri Jan 31 15:09:14 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20352
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #96412|0 |1
is obsolete| |
--- Comment #8 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 98236
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98236&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.
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list