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 <david@davidnind.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
e92dfc5ab0
commit
528f81b7fd
|
|
@ -184,6 +184,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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue