[Koha-bugs] [Bug 20125] Add a cron script to claim late orders
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 23 22:29:02 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20125
Séverine Queune <severine.queune at bulac.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #71274|0 |1
is obsolete| |
--- Comment #7 from Séverine Queune <severine.queune at bulac.fr> ---
Created attachment 74767
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74767&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
Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list