Bug 40836 - Credit and debit types are not shown in patron account on OPAC
Summary: Credit and debit types are not shown in patron account on OPAC
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 40256
  Show dependency treegraph
 
Reported: 2025-09-18 13:31 UTC by Andrew Fuerste-Henry
Modified: 2025-09-26 18:35 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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