https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35100
Bug ID: 35100
Summary: Items assigned to StockRotation do not advance if a
reserve is triggered before the initial transfer
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Tools
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
I have not recreated personally, but we have found evidence of this multiple
times on a site using stock rotation
Scenario:
1 - Item is added to stock rotation
2 - The cronjob creates a 'StockRotationAdvance' transfer
3 - The item is checked in, which initiates the transfer, however, a hold is
triggered
4 - The hold is confirmed, which cancels the StockRotationAdvance
5 - The item is checked out and returned
6 - The stock rotation cronjob eventually calls
Koha::StockRotationItem->needs_advancing which looks for all
StockRotationAdvance transfers, ordered by date arrived
7 - The only one has a NULL date arrived
8 - The date arrived is put into dt_from_string, which returns today when given
null
9 - The date object above then calls 'delta_days' from dt_from_string()
10 - The number of days from NOW to NOW is always 0
11 - The item does not advance until manually forced
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/