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)