[Koha-bugs] [Bug 32560] Mark expired borrowers as having lost their card
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 3 17:49:13 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32560
Sam Lau <samalau at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #146031|0 |1
is obsolete| |
--- Comment #12 from Sam Lau <samalau at gmail.com> ---
Created attachment 154222
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154222&action=edit
Bug 32560: Cronjob to mark expired borrowers as lost their card
Test plan:
1. Edit a borrower to have an expiration date in the past - also make
sure they have 'Lost card' set to 'No'
2. Run the set_expired_lost.pl script:
sudo koha-shell <instance>
cd misc/cronjobs
./set_expired_lost.pl
3. Notice you get output saying the number of borrowers are to be changed
4. View the borrower account from #1 and notice they have a 'Lost card'
value of 'Yes'
5. Run the set_expired_lost.pl script again and observe no output is
printed to the terminal - this is because all expired borrowers have
already been marked as lost.
Sponsored-by: Dalton McCaughey Library, Australia
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Sam Lau <samalau at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list