4-status-not-updating-to-recieved-unless-all-items-in-order-are-recieved
authorJason Etheridge <jason@EquinoxInitiative.org>
Fri, 15 Jun 2018 20:19:43 +0000 (16:19 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Fri, 15 Jun 2018 20:19:43 +0000 (16:19 -0400)
commit8d300a50d89afa39adc62a42b85b772f73e7f862
treec018e4c4398dc1c34f81d465172e0d6215f35225
parent725e14ea540f63f4345f8c758e5c240d7c35691f
4-status-not-updating-to-recieved-unless-all-items-in-order-are-recieved

Change to acq patron request status logic, which now looks like this:

If a cancel_reason is set on the patron request, then status = "Canceled"

If there is an associated hold request that has fulfillment_time set,
then status = 'Fulfilled"

If there is an associated lineitem has a state of "received", then status =
"Received"

If there is an associated purchase order with a state of "on-order" and an
associated hold request, then status = "Ordered, Hold Placed"

If there is an associated purchase order with a state of "on-order" but no
associated hold request (created through the automated process), then status =
"Ordered, Hold Not Placed"

If there is an associated lineitem (selection list), then status = "Pending"

If there is no associated lineitem, then status = "New"

Any other condition, which should be impossible (I should never say that), will
give a status of "Error"

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/examples/fm_IDL.xml