Bug 30075 - We should centralize No issues charge code in Patron object
Summary: We should centralize No issues charge code in Patron object
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-10 14:42 UTC by Nick Clemens (kidclamp)
Modified: 2022-02-10 14:42 UTC (History)
0 users

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) 2022-02-10 14:42:23 UTC
We have several places in the code where we fetch the no issues charge preferences and calculate amount owed by patron and/or guarantees and/or related guarantors

This should all be a single method in Koha::Patron which returns:
relevant amount(s) owed
whether patron is blocked by fines
the reason patron is blocked (their fines, guarantees fines, all related fines)