Bug 39515 - Add where parameter to delete_patrons.pl
Summary: Add where parameter to delete_patrons.pl
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 15:27 UTC by Aude Charillon
Modified: 2025-04-01 15:27 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 Aude Charillon 2025-04-01 15:27:20 UTC
Some scripts, like delete_items.pl for example, have a -where parameter which allows for SQL statements to be used as additional parameters.

It would be useful to have a similar -where parameter in the batch delete patrons script. Library teams have different requirements regarding which patrons should be deleted (and when), and even their own definition of inactive patrons. Having a -where parameter would offer them more flexibility to automatically delete patrons using the script, rather than having to do this manually.