From 528f81b7fd4f9da1b31aa8274fc63fea5b4981fb Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 16 Feb 2026 14:51:30 +0000 Subject: [PATCH] Bug 37671: (follow-up) Use PAYOUT notice for payout receipts on patron account page This patch adds support for printing PAYOUT receipts from the patron account page (members/boraccount.pl) using the new PAYOUT notice template. Previously, PAYOUT debits used the generic invoice print template. Now they use the same dedicated PAYOUT receipt template that is used in the POS register, providing consistent receipt formatting across both interfaces. Test plan: 1. Create a charge on a patron account (e.g., Lost item) 2. Pay the charge 3. Refund the payment with a cash payout 4. On the patron account page, click "Print" for the PAYOUT transaction 5. Verify the receipt uses the PAYOUT notice template showing: - Transaction details (ID, operator, payout type) - Refund details showing what was refunded - Total payout amount 6. Verify it matches the format used in the POS register Signed-off-by: David Nind Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 98666a6415..09fc5c614b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -184,6 +184,10 @@ [% ELSE %] Print [% END %] + [% ELSIF ( account.debit_type_code == 'PAYOUT' ) %] + Print [% ELSE %] Print [% END %]