From 4e32b512a506cd0d7f61dbaa1d176d486d0ee2d3 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 --- 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 6db3bb56424..6d771bb6a05 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -178,6 +178,10 @@ [% ELSE %] Print [% END %] + [% ELSIF ( account.debit_type_code == 'PAYOUT' ) %] + Print [% ELSE %] Print [% END %] -- 2.53.0