[Koha-bugs] [Bug 15563] Add option to regularly delete patroncard and label batches to cleanup_database.pl cronjob

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 10 19:03:33 CET 2021


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

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #118076|0                           |1
        is obsolete|                            |

--- Comment #21 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 118078
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118078&action=edit
Bug 15563: add option to cleanup_database to delete old label and card batches

To test:
For item label batches:
1- Create 3 item label batches of at least 2 items each
2- Perform the following updates via the database
3- In Batch 1, set all items' timestamps to 10+ days prior to today
4- In Batch 2, set 1 item's timestamp to 10+ days prior to today
5- In Batch 3, do not update any timestamps
6- Run cron with --labels 9
7- Confirm batch 1 is deleted, batches 2 and 3 are not

Repeat with card creator batches
8- Create 3 card creator batches of at least 2 items each
9- Perform the following updates via the database
10- In Batch 1, set all cards' timestamps to 10+ days prior to today
11- In Batch 2, set 1 card's timestamp to 10+ days prior to today
12- In Batch 3, do not update any timestamps
13- Run cron with --cards 9
14- Confirm batch 1 is deleted, batches 2 and 3 are not

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

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


More information about the Koha-bugs mailing list