[Koha-bugs] [Bug 14292] Add --category and --skip-category options to longoverdue.pl to include or exclude borrower categories.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 31 18:18:38 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14292
Barton Chittenden <barton at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |Needs Signoff
--- Comment #2 from Barton Chittenden <barton at bywatersolutions.com> ---
Prerequisites for testing:
Several borrower categories defined (Let's call them ADULT, STAFF, CHILD)
Borrowers defined in each category (AA -- ADULT, SS -- STAFF, CC -- CHILD)
Items available for checkout.
Make sure that you are using the default authorised value 2 as "Long Overdue
(Lost)"
Apply patch
Make sure that $KOHA_CONF and $PERL5LIB are set correctly.
Test plan:
1) Check out items to AA, SS and CC. Backdate the check-ins so that the due
date more than 90 days prior (2015-05-01 is a practical date, if testing in
2015). Note the borrower number and item number for each checkout.
2) Run longoverdue.pl in verbose without the --confirm option:
./misc/cronjobs/longoverdue.pl -l 90=2 -v
### TEST MODE -- NO ACTIONS TAKEN ###
Range 1
Due 90 - 366 days ago (2014-08-30 to 2015-06-02), lost => 2
Due 2015-04-01 23:59:00: item # from borrower ## to lost: 2
Due 2015-05-01 23:59:00: item # from borrower ## to lost: 2
Due 2015-05-01 23:59:00: item # from borrower ## to lost: 2
3) Run longoverdue.pl without --confirm using --category STAFF:
./misc/cronjobs/longoverdue.pl -l 90=2 -v --category STAFF
You should see the item checked out to STAFF set as lost, but the other two
items will not be processed.
4) Run longoverdue.pl without --confirm using --skip-category STAFF
./misc/cronjobs/longoverdue.pl -l 90=2 -v --skip-category STAFF
You should see the items checked out to ADULT and CHILD set as lost, but STAFF
will not be processed.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list