Bug 23063: Use Price formatting on amounts in item table in cataloguing
authorKatrin Fischer <katrin.fischer.83@web.de>
Tue, 20 Sep 2022 20:49:22 +0000 (20:49 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 14:44:36 +0000 (11:44 -0300)
commit95face066ff1c587be0513038d8e4c93003e5e3e
tree7b70efb4eca910425bfa5255bc959ef4bc4c7a2a
parent499562f0b80ca705e94581ccef0eebadce1ed6f9
Bug 23063: Use Price formatting on amounts in item table in cataloguing

Koha can use CurrencyFormat for displaying price amounts and should do
so consistently everywhere. Without this patch price and replacement cost
will always display as xx.xx independent of CurrencyFormat setting in
the table above the edit items form. This patch fixes the table display.

To test:
* Apply patch
* Search or create a record with multiple items
* Fill in some price and replacement costs
* Try different settings of the CurrencyFormat system preference
* The display in the item table above the edit/add form should display
  according to the system preference
* Verify sorting works

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt