From 287c82ab175ee1a42e2b015466268b5674dc2ed6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 28 Jan 2021 09:08:24 +0000 Subject: [PATCH] Bug 26272: Add ajax driven cashup modal to library page This patch adds an ajax driven cashup summary modal to the library registers summary page. Test plan 1/ Enable UseCashRegisters in the system preferences 2/ Add at least one cash register to your library 3/ Make some payments of various types (Cash, Card) against the cash register 4/ View the register transactions details page 5/ Make a refund against a payment 6/ Cashup 7/ View the cashup summary by clicking on the 'Summary' link on the register page. 8/ Navigate to the 'libraries' summary page 9/ View the cashup summary by clicking on the 'Summary' link in the registers table. 10/ Signoff Signed-off-by: Sally --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 65f593a1dc..a606b24ffa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt @@ -75,7 +75,7 @@ [% register.description | html %] [%- IF register.last_cashup -%] - [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] ([% register.last_cashup.amount | $Price %]) + [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] (Summary) [%- ELSE -%] No last cashup [%- END -%] @@ -177,8 +177,11 @@ + [% INCLUDE 'modals/cashup_summary.inc' %] + [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] + [% Asset.js("js/cashup_modal.js") | $raw %]