[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 Feb 2 20:59:34 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32560
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #145782|0 |1
is obsolete| |
--- Comment #7 from David Nind <david at davidnind.com> ---
Created attachment 146031
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146031&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>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list