Bug 39426 - Inconsistency in handling debits and credits via the accounts endpoint
Summary: Inconsistency in handling debits and credits via the accounts endpoint
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-23 16:21 UTC by Nick Clemens (kidclamp)
Modified: 2025-03-25 13:46 UTC (History)
1 user (show)

See Also:
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 Nick Clemens (kidclamp) 2025-03-23 16:21:42 UTC
We need to improve consistency here

patron_account.yaml uses:

patron_account_credit.yaml as the definition for credits
debits.yaml as the definition for debits
We should name these consistently

the credit file has 'date' as a 'date' field
the debit file has 'date' as a 'date-time' field
Comment 1 Tomás Cohen Arazi (tcohen) 2025-03-25 13:46:59 UTC
Will check while moving to OpenAPIv3