Bug 37699 - debar_patrons_with_fines.pl places multiple restrictions on the same patron if it's run multiple times
Summary: debar_patrons_with_fines.pl places multiple restrictions on the same patron i...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low trivial
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-21 14:03 UTC by Sara Brown
Modified: 2024-08-21 14:04 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 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.