From 8b981c8fec19cd36c377ece91ae05495dceadebe Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 18 Sep 2025 14:58:44 +0100 Subject: [PATCH] Bug 40445: Add two-phase cashup options to registers page Update the registers page "Record cashup" buttons to use the same dual-workflow modal as the single register page. This provides staff with both quick and two-phase cashup options directly from the registers summary. Changes: - Add new triggerCashupModalRegister modal with Start/Quick cashup options - Update individual register Record cashup buttons to use new modal - Add JavaScript handlers for modal population and Quick cashup logic - Preserve existing "Cashup all" functionality unchanged Each register's Record cashup button now offers: - Start cashup: Two-phase workflow for counting while register operates - Quick cashup: Single-phase workflow when amounts are obviously correct --- .../prog/en/modules/pos/registers.tt | 194 ++++++++++++++++-- pos/registers.pl | 33 ++- 2 files changed, 209 insertions(+), 18 deletions(-) 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 c79ad6c20fd..a9d8e5c00e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt @@ -112,17 +112,31 @@ [% IF CAN_user_cash_management_cashup %] - + [% IF register.cashup_in_progress %] + + [% ELSE %] + + [% END %] [% END %] @@ -147,24 +161,89 @@ [% END %] [% END %] + + + +