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

--- Comment #1 from Alex Arnaud <alex.arn...@biblibre.com> ---
Created attachment 71139
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71139&action=edit
Bug 20125 - Add a script to claim late orders (ordersClaim.pl)

Test plan:

 - Put some orders late from different baskets by changing the closedate
   column in aqbasket table,

Testing delay parameters:
 - launch "perl misc/cronjobs/ordersClaim.pl" with the following
   parameters:
   - delay: Up to the number of days from the basket's closedate,
   - claimed-for: no matter for the first claim,
 - Check that there is one entry in message_queue *for each basket with
   late order(s)*
 - Check these late orders in database:
   - claims_count column should be set to 1,
   - claimed_date should be today

Testing claimed-for parameter:
 - change the claimed_date column in database for all orders (i.e 2 days
   back),
 - launch "perl misc/cronjobs/ordersClaim.pl" again with the following
   parameters:
   - delay: Same than for the first test,
   - claimed-for: 3 (if set claimed_date 2 days back),
   - max-claims: at least 2
 - check that there is no new entry in message_queue
 - launch "perl misc/cronjobs/ordersClaim.pl" again by moving only
   claimed-for to 1
 - There should be new entry in message_queue
 - claims_count column should be set to 2
 - claimed_date should be today

Testing max-claims parameter:
 - change the claimed_date column in database for all orders (i.e 2 days
   back),
 - launch "perl misc/cronjobs/ordersClaim.pl" again with the following
   parameters:
   - delay: Same than for the first and second test,
   - claimed-for: 1 (if set claimed_date 2 days back),
   - max-claims: 1 and 2 (test the two options),
 - There should be new entry in message_queue
 - launch "perl misc/cronjobs/ordersClaim.pl" again by moving only
   max-claims to 3
 - There should be new entry in message_queue
 - claims_count column should be set to 3
 - claimed_date should be today

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to