Bug 30075

Summary: We should centralize No issues charge code in Patron object
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
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:

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)