From 35d5675baabfa2c868ca749e3d8941769e02521a 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 Signed-off-by: Katrin Fischer --- 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 97b2d93096..188012f3d7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt @@ -79,7 +79,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 -%] @@ -181,8 +181,11 @@ + [% INCLUDE 'modals/cashup_summary.inc' %] + [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] + [% Asset.js("js/cashup_modal.js") | $raw %]