Bugzilla – Attachment 189349 Details for
Bug 40836
Credit and debit types are not shown in patron account on OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40836: OPAC Type column should show local debit/credit type descriptions
Bug-40836-OPAC-Type-column-should-show-local-debit.patch (text/plain), 2.86 KB, created by
Laura Escamilla
on 2025-11-07 16:56:12 UTC
(
hide
)
Description:
Bug 40836: OPAC Type column should show local debit/credit type descriptions
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2025-11-07 16:56:12 UTC
Size:
2.86 KB
patch
obsolete
>From 8aea305ec5026128f821b433e658ae97de8b5bae Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Fri, 7 Nov 2025 16:55:10 +0000 >Subject: [PATCH] Bug 40836: OPAC Type column should show local debit/credit > type descriptions >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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. >--- > .../bootstrap/en/includes/accounts.inc | 20 +++++++++++++++---- > 1 file changed, 16 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc >index b3e397ba20..bb345101f1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc >@@ -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 -%] > >-- >2.39.5
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 40836
:
189349
|
189366