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>
This commit is contained in:
Laura_Escamilla 2025-11-07 16:55:10 +00:00 committed by Lucas Gass
parent 61d44af600
commit a399374a2d
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 16 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>
@ -45,7 +45,13 @@
[%- CASE 'VOID' -%]
<span>Credit has been voided</span>
[%- CASE -%]
<span>[% debit_type.description | html %]</span>
<span
>[%- IF account && account.debit_type && account.debit_type.description -%]
[% account.debit_type.description | html %]
[%- ELSE -%]
[% debit_type_code | html %]
[%- END -%]
</span>
[%- END -%]
[%- END -%]
@ -75,7 +81,13 @@
[%- CASE 'WRITEOFF' -%]
<span>Writeoff</span>
[%- CASE -%]
<span>[% credit_type.description | html %]</span>
<span
>[%- IF account && account.credit_type && account.credit_type.description -%]
[% account.credit_type.description | html %]
[%- ELSE -%]
[% credit_type_code | html %]
[%- END -%]
</span>
[%- END -%]
[%- END -%]