Bug 40836

Summary: Credit and debit types are not shown in patron account on OPAC
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: rcoert
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 40256    

Description Andrew Fuerste-Henry 2025-09-18 13:31:06 UTC
In the patron account on the OPAC, the Type column is meant to show the description value for the associated credit or debit type (account_credit_types.description or account_debit_types.description). But the Type column is empty for any credit or debit type that's defined locally. All of the system-defined credit and debit types have this value hardcoded in the accounts.inc file, rather than actually fetching the value from the database.

To recreate:
- create a credit type that can be applied manually
- create a debit type that can be applied manually
- apply both a credit and debit to your patron (make sure auto-reconcile is off)
- look at your patron's account in the staff interface, see values in the "account type" column
- look at your patron's account in the OPAC, see the "Type" column is blank