From 9d65983eeece9120250414a44927344f444b25bc Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 28 Jan 2021 17:20:29 +0000 Subject: [PATCH] Bug 26274: Update register.tt to use the API This patch updates the existing register details page to utilise the new api routes to gather the summary details on demand. Test plan 1/ Enable cash registers 2/ Add some transactions 3/ Perform a cashup 4/ Click 'Summary' next to the last cashup date 5/ Note the modal appears as it did prior to the patch being applied. 6/ Check the print option still works 7/ Signoff Signed-off-by: David Nind --- .../prog/en/includes/modals/cashup_summary.inc | 33 +++++++++++ .../intranet-tmpl/prog/en/modules/pos/register.tt | 65 ++-------------------- koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js | 52 +++++++++++++++++ 3 files changed, 89 insertions(+), 61 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/modals/cashup_summary.inc create mode 100644 koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cashup_summary.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cashup_summary.inc new file mode 100644 index 0000000000..7e9e246918 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cashup_summary.inc @@ -0,0 +1,33 @@ + + 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 55c23fcdde..caaea05ed3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt @@ -59,8 +59,7 @@

Summary