Bug 37699

Summary: debar_patrons_with_fines.pl places multiple restrictions on the same patron if it's run multiple times
Product: Koha Reporter: Sara Brown <sbrown>
Component: System AdministrationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: gmcharlt
Version: 24.05   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15157
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16223
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Sara Brown 2024-08-21 14:03:52 UTC
If debar_patrons_with_fines.pl from bug 15157 is run multiple times, multiple restrictions are placed on the same patron for the same balance due. For instance, if a patron has a balance due above the amount set in the cron over the span of 4 weeks, and their library runs the cron weekly, that patron will have 4 separate restrictions placed on their account. 

All restrictions clear if they pay their fine to or below the amount in 'Fee limit' according to the setup for Bug 16223 - Automatically remove any borrower debarments after a payment, but seeing multiple restrictions for the same offense could be confusing for staff. And for libraries who choose to not have restrictions automatically removed according to bug 16223, staff will need to manually delete multiple restrictions instead of just one.