Details
-
Story
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
-
ACQ Sprint 83, ACQ Sprint 84
-
2
-
Thunderjet
Description
Overview
When an order is closed for any reason, item records for which pieces have not yet been received (have an item status "On order") are problematic as they currently can not be deleted or otherwise updated.
Given the order has pieces for which item records were created
When the order is closed
Then set item status of all "On order" items to a status of "Order closed"
Given an order had pieces for which item records were created and their status was set to "Order closed"
When re-opening the order
Set status of related items to "On order"
Notes
Clarification based on findings during testing:
PUT /orders/composite-orders (without compositePoLines)
- you should be able to update workflow status (this is what the UI currently does)
PUT /orders/composite-orders (with compositePoLines)
- the eventbus asynch processing will kick in and set the workflowStatus based on paymentStatus/receiptStatus
- We probably want to avoid triggering the asynch processing if workflowStatus is changed. See MODORDERS-369
Whenever workflowStatus changes (Open/Closed), item statuses should be adjusted
Acceptance Criteria
- Item statuses are updated as described above
- Unit tests are updated
- API tests are updated
TestRail: Results
Attachments
Issue Links
- blocks
-
MODORDERS-363 Create MODORDERS release
-
- Closed
-
- defines
-
UXPROD-2168 Editing orders after they have been opened
-
- Closed
-
- relates to
-
UIOR-444 Ability to change quantity ordered without closing order
-
- Closed
-
-
CHAL-39 Cannot delete item with status "On order" after order is closed
-
- Closed
-
-
MODORDERS-110 Cleanup inventory records when an order is Deleted
-
- Closed
-
-
MODORDERS-324 Delete any related item records with status "On order" when order is deleted
-
- Closed
-
-
MODORDERS-353 Migrate to new major version of item-storage, inventory, circulation
-
- Closed
-
- requires
-
MODINVSTOR-283 Restrict item states
-
- Closed
-