Koha-clms/Koha/Template/Plugin
Jonathan Druart 945a0f09e7 Bug 13352: On editing, prices should not be formatted
Bug 12979 refactored the way to display prices.
The price format configuration was duplicated everywhere it was used.

All calls looks good except the one in admin/aqbudgetperiods.pl
In this one, the prices are formatted for an edition field (input).
This means the input is incorrectly filled even if the user does not
update the field.

At the end, maybe should we manage formatted prices everywhere, even in
inputs, but it's not in the scope of this bug.

Technically, a new subroutine format_for_editing is added to the
Koha::Number::Price module.
It should be called everywhere a price is displayed in an input field.
At the moment, it only does a sprintf("%.2f"), but it is a first step to
let the number of decimals to display configurable.

To test:
1/ Verify the issue described is fixed (editing a budget with a total
amount > 1000 (With CurrencyFormat is US or FR).
2/ Verify you can edit a fund with a total amount > 1000

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-02-09 13:35:14 -03:00
..
AuthorisedValues.pm Bug 11944: TT Plugins should not encode strings 2015-01-13 13:07:07 -03:00
Borrowers.pm Bug 10694: (follow-up) fix problems with the new Borrowers plugin 2014-05-02 22:49:23 +00:00
Branches.pm Bug 11944: TT Plugins should not encode strings 2015-01-13 13:07:07 -03:00
Cache.pm Bug 12041 - improve Koha::Cache 2014-06-19 13:05:04 -03:00
ColumnsSettings.pm Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
ItemTypes.pm Bug 11944: TT Plugins should not encode strings 2015-01-13 13:07:07 -03:00
Koha.pm Bug 13496: add a method for the templates to print Koha version as desired 2015-01-04 11:24:07 -03:00
KohaDates.pm Bug 9723: display time due for hourly loans in the public catalog 2014-05-08 16:38:43 +00:00
Price.pm Bug 13352: On editing, prices should not be formatted 2015-02-09 13:35:14 -03:00