Bug 32629

Summary: Add option for deleting resolved ILL requests to cleanup_database.pl
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: ILLAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: lisette, martin.renvoize, pedro.amorim, r.delahunty
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22513
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29109
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2023-01-13 14:32:16 UTC
At the moment resolved (filled, cancelled) ILL requests cannot be deleted from the staff interface.

It would be nice if there was a way to delete them after X days.

The status could default to COMP for starters, but we might want to make it configurable in a next step.
Comment 1 Pedro Amorim 2023-06-27 11:18:04 UTC
The backend may let the deletion of the request in whatever status, can it not?
Regardless, this bug is about adding the possibility of cleaning up "resolved" requests from the database.
I think we need to first set what a "resolved" request is. Is it "COMP", "CANCREQ", both, something else?

Perhaps have a default definition of what a "resolved" request is, and add an argument to the script for custom "resolved" status conditions (this would also enable setting statuses that are backend specific, something we have no way of knowing from core alone).
Comment 2 Lisette Scheer 2023-09-12 15:07:34 UTC
Could config be based on a system preference where each library could put in the statuses they wanted cleaned up and the number of days to keep them before clearing them out?