From 55b767e7f1876a9cbb0e9819d3ee6971cfc49d40 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 --- 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 %]