Koha/misc
Nick Clemens 765225d99f Bug 28456: Add WHERE option to membership_expiry cronjob
Some libraries have a large amount of accounts and want to be able to limit how many email reminders they send.
Adding a where statement will allow for flexibility

To test:
1 - Set some borrowers to expire soon
2 - Set MembershipExpiryDaysNotice to 10
3 - perl misc/cronjobs/membership_expiry.pl -c -v -n --before 100 --after 100
4 - Note the patrons that yo uadjusted show up
5 - Limit by various patron fields, e.g.
    perl misc/cronjobs/membership_expiry.pl -c -v -n --before 100 --after 100 --where="lastseen IS NULL"
    perl misc/cronjobs/membership_expiry.pl -c -v -n --before 100 --after 100 --where="lastseen IS NOT NULL"
    perl misc/cronjobs/membership_expiry.pl -c -v -n --before 100 --after 100 --where="surname LIKE '%a%'"
    perl misc/cronjobs/membership_expiry.pl -c -v -n --before 100 --after 100 --where="surname NOT LIKE '%a%'"
6 - Confirm expected results
7 - perl misc/cronjobs/membership_expiry.pl
8 - Confirm the help message makes sense

Signed-off-by: Azucena Aguayo <azucena.aguayo@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Replace two inclue by include.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-30 17:02:07 +02:00
..
admin Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
bin Bug 17600: Fix POSIX imports 2021-07-29 14:37:26 +02:00
cronjobs Bug 28456: Add WHERE option to membership_expiry cronjob 2021-08-30 17:02:07 +02:00
devel Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
interface_customization Bug 23148: Replace Bridge icons with transparent PNG files 2020-07-20 16:16:37 +02:00
load_testing Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
maintenance Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
migration_tools Bug 17600: (follow-up) Fix missing C4::AuthoritiesMARC import 2021-07-30 08:06:07 +02:00
release_notes Add release notes for Koha 21.05.00 2021-05-28 14:45:29 +02:00
search_tools Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
translator Bug 17600: Fix POSIX imports 2021-07-29 14:37:26 +02:00
add_date_fields_to_marc_records.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
background_jobs_worker.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchCompareMARCvsFrameworks.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchdeletebiblios.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchDeleteUnusedSubfields.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchImportMARCWithBiblionumbers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchRebuildBiblioTables.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchRebuildItemsTables.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
batchRepairMissingBiblionumbers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
check_sysprefs.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
commit_file.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
export_borrowers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
export_records.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
exportauth.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
import_patrons.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
koha-install-log Bug 28519: Put CGI::Session::Serialize::yamlxs in lib directory 2021-06-17 10:07:36 +02:00
kohalib.pl
link_bibs_to_authorities.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
load_yaml.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
mod_zebraqueue.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
perlmodule_ls.pl
perlmodule_rm.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
recreateIssueStatistics.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
sax_parser_print.pl Bug 17626 (QA followup) 2016-11-22 11:29:07 +00:00
sax_parser_test.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
sip_cli_emulator.pl Bug 28320: Add DB connection check to the SIP SC status message 2021-05-17 12:34:33 +02:00
stage_file.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
z3950_responder.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00