Bug 40836: OPAC Type column should show local debit/credit type descriptions

To test:
1. create a credit type that can be applied manually
2. create a debit type that can be applied manually
3. apply both a credit and debit to your patron (make sure auto-reconcile is off)
4. look at your patron's account in the staff interface, see values in the "account type" column
5. look at your patron's account in the OPAC, see the "Type" column is blank
6. Apply the patch - restart_all
7. Refresh the patron’s account in the OPAC — clear browser cache if necessary. The Type columns should now be populated.

Signed-off-by: CJ Lynce <cj.lynce@westlakelibrary.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit a399374a2d)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit 66dde68869)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Laura_Escamilla 2025-11-07 16:55:10 +00:00 committed by Fridolin Somers
parent 2b724766f8
commit e5033e0c60
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 18 additions and 4 deletions

View File

@ -1,9 +1,9 @@
[%- BLOCK account_type_description -%]
<span>
[%- IF account.credit_type_code -%]
[%- PROCESS credit_type_description credit_type_code = account.credit_type_code -%]
[%- PROCESS credit_type_description credit_type_code = account.credit_type_code account=account -%]
[%- ELSIF account.debit_type_code -%]
[%- PROCESS debit_type_description debit_type_code = account.debit_type_code -%]
[%- PROCESS debit_type_description debit_type_code = account.debit_type_code account=account -%]
[%- END -%]
[%- PROCESS account_status_description account=account -%]
</span>
@ -27,7 +27,14 @@
[%- CASE 'RESERVE_EXPIRED' -%]<span>Hold waiting too long</span>
[%- CASE 'PAYOUT' -%]<span>Payment from library to patron</span>
[%- CASE 'VOID' -%]<span>Credit has been voided</span>
[%- CASE -%]<span>[% debit_type.description | html %]</span>
[%- CASE -%]
<span
>[%- IF account && account.debit_type && account.debit_type.description -%]
[% account.debit_type.description | html %]
[%- ELSE -%]
[% debit_type_code | html %]
[%- END -%]
</span>
[%- END -%]
[%- END -%]
@ -44,7 +51,14 @@
[%- CASE 'PURCHASE' -%]<span>Purchase</span>
[%- CASE 'REFUND' -%]<span>Refund</span>
[%- CASE 'WRITEOFF' -%]<span>Writeoff</span>
[%- CASE -%]<span>[% credit_type.description | html %]</span>
[%- CASE -%]
<span
>[%- IF account && account.credit_type && account.credit_type.description -%]
[% account.credit_type.description | html %]
[%- ELSE -%]
[% credit_type_code | html %]
[%- END -%]
</span>
[%- END -%]
[%- END -%]