[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
Wed Jan 4 02:27:57 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32560

--- Comment #1 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 144967
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144967&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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list