Bug 4078: Add the ability to display and configure the symbol for prices
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Feb 2018 17:32:39 +0000 (14:32 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Mar 2018 14:45:38 +0000 (11:45 -0300)
commit18e72e31957a51206875ac27d92929909a90ef34
tree5e127d93ff556f30d23be823f6509facee04ff00
parentd03a4008240380a342ba6d7734c00f699f57902c
Bug 4078: Add the ability to display and configure the symbol for prices

The symbol of currencies are not displayed (or not correctly) so far.
This patch set adds the ability to configure the display of the symbol
(with or without a whitespace between the symbol and the price).

Test plan:
1. Execute the update DB entry, go to the currency admin page and tick the
new "Space separation between symbol and value" checkbox
2. Add a fine to a patron and use their credentials to login at the OPAC
3. You should see the "$ 42 due fines and charges" info in the
dashboard
4. Untick the new checkbox to remove the space and reload the OPAC main
page.
=> The space should not be longer displayed ($42)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Number/Price.pm
t/Number/Price.t