Bug 33522: Add active and inactive parameter to membership_expiry.pl
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 30 May 2023 15:04:28 +0000 (15:04 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Oct 2023 15:07:50 +0000 (11:07 -0400)
commitd6a2a3c88cd5a12137e70125c513e7129402d1e0
tree055fb1287ee0ff06dace8db43bf9bd80ab0292cb
parent52ae9a3a25037fe73f99fa5777a2e5b75e0568fe
Bug 33522: Add active and inactive parameter to membership_expiry.pl

Test plan:
Enable TrackLastPatronActivity.
Set MembershipExpiryDaysNotice to X days.
Pick a patron, make it expire in X days. Add email address.
Update borrowers.lastseen for this patron to make it active.
Run membership_expiry.pl -c -v -active 6
You should see at least one enqueued notice.
Run membership_expiry.pl -c -v -inactive 6
You should see that it skipped a number of active patrons (>=1).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/membership_expiry.pl