Bugzilla – Attachment 193259 Details for
Bug 37671
Can't print receipt for refund from cash register transaction history
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37671: (follow-up) Use PAYOUT notice for payout receipts on patron account page
4e32b51.patch (text/plain), 2.56 KB, created by
Martin Renvoize (ashimema)
on 2026-02-16 15:32:15 UTC
(
hide
)
Description:
Bug 37671: (follow-up) Use PAYOUT notice for payout receipts on patron account page
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2026-02-16 15:32:15 UTC
Size:
2.56 KB
patch
obsolete
>From 4e32b512a506cd0d7f61dbaa1d176d486d0ee2d3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >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 %] > <a target="_blank" href="printfeercpt.pl?action=print&accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs receipt-print-action"><i class="fa fa-print"></i> Print</a> > [% END %] >+ [% ELSIF ( account.debit_type_code == 'PAYOUT' ) %] >+ <a target="_blank" href="/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs receipt-print-action" >+ ><i class="fa fa-print"></i> Print</a >+ > > [% ELSE %] > <a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs invoice-print-action"><i class="fa fa-print"></i> Print</a> > [% END %] >-- >2.53.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37671
:
192335
|
192336
|
192845
|
192846
|
193257
|
193258
| 193259