Distribution: Item status and actions
The API allows for changing the status of selected items:
Actions are disabled when nothing is selected:
In case of SPLIT
it will generate a new request record.
But this doesn't mean the UI is doing the right thing
Actions and states
As described in grin-global-server#35 (closed), the item state NEW
is the initial state and one of: SHIPPED
, CANCEL
or SPLIT
is the final state.
When all items are in a final state, the request can be closed by filling the completed
date. No further changes should be allowed when the order is "closed".
Proposed state-change diagram
The diagram tries to explain the purpose of intermediate states (HOLD
, PENDING
, INSPECT
and QUALITYTEST
) and how they relate to the process steps.
I'm struggling with INSPECT
and QUALITYTEST
states.
Curator actions
The UI needs to be updated to support the following initial curator actions on request items:
Current state | Action | New state |
---|---|---|
NEW | Cancel | CANCEL |
NEW | Split | SPLIT |
NEW | Hold | HOLD |
NEW | Assign inventory | NEW |
HOLD | Resume | NEW |
CANCEL | Resume/Reset | NEW |
These actions are for the curator (person in charge). You will notice that PENDING
is not in the list above. When we're ready to begin preparing the material, the items in NEW
state are flagged items as PENDING
.
At the moment when inventories are pulled from storage, the item status changes to PENDING
.
In this PENDING
state all the operations of the technicians are executed, until we know the item has SHIPPED
. We should allow for state to change from PENDING
to HOLD
in case there are issues with physical inventories.
Tasks for technicians are further documented (enhanced) by creating individual order item actions.