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>
This commit is contained in:
parent
7490e787c0
commit
66dde68869
|
|
@ -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 -%]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue