From cb5d9d240a9faed0851294203c088c15f2afe86b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 24 Jun 2022 11:36:32 +0100 Subject: [PATCH] Bug 31038: Fix price formating in cashup summary This patch uses the existing format_price JS include to format prices in the cashup summary modal Test plan 1) Create some transactions and a cashup 2) View the cashup summary modal and confirm amounts are not nicely formatted 3) Apply patch 4) Confirm amounts in cashup summary modals are now nicely formatted Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f46b636d03aa6e35c97f8c00cc7d6f0c6f4dbc94) Signed-off-by: Lucas Gass (cherry picked from commit 4debd73a216faed8c710c10fea4f2f9b1bf43acc) Signed-off-by: Arthur Suzuki --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt | 1 + koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt index b5604d8f97..8499727d48 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt @@ -332,6 +332,7 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %] + [% INCLUDE 'format_price.inc' %] [% Asset.js("js/cashup_modal.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'js-date-format.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt index 4a15758d6a..9d5c94c9ec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt @@ -195,6 +195,7 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'format_price.inc' %] [% Asset.js("js/cashup_modal.js") | $raw %]