Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
ACQ Sprint 62
-
5
-
Thunderjet
Description
Overview:
PO status should automatically be updated to "Closed" (reason for closure is "Complete") when the following conditions are met:
- the order has
workflowStatus == "Open"
- all PoLines have:
(paymentStatus == "Not required" OR paymentStatus == "Fully paid") AND (receivingStatus == "Fully received" OR receivingStatus == "Receiving not required")
PO status should automatically be updated to "Open" when the following conditions are met:
- the order has
workflowStatus == "Closed"
- not all PoLines have:
(paymentStatus == "Not required" OR paymentStatus == "Fully paid") AND (receivingStatus == "Fully received" OR receivingStatus == "Receiving not required")
dennisbridges to check with the small group on whether a notification is required/desired in this case, and the preferred mechanism for such notifications (toast/email/confirmation modal/etc.) If any work is required for notifications it will be handled in a separate story.
We've discussed using the vertx event-bus to manage the state of the fields which contain summary information (See https://issues.folio.org/browse/MODORDERS-173). That approach seems like a good fit for this situation...
- When a PoLine's (paymentStatus or receivingStatus) are updated, fire an event. (PUT /orders/order-lines)
- The event will trigger a handler that will update the order's workflowStatus if needed (based on the criteria above)
Acceptance criteria:
- The business logic described above has been implemented
- Unit tests have been updated
- API tests have been updated
TestRail: Results
Attachments
Issue Links
- relates to
-
MODORDERS-173 ensure receiptStatus consistency between piece and poLine
-
- Closed
-
-
MODORDERS-215 Update order status to "Closed" from receiving flow
-
- Closed
-
-
MODORDERS-216 Update order status to "Open" when backing out receipt of materials
-
- Closed
-
-
MODORDERS-234 Update PO status based on receipt/payment status - Part 2
-
- Closed
-
-
UIOR-226 Access Receiving/Checkin history for closed orders
-
- Closed
-
-
UXPROD-1606 Ordering quality assurance enhancements - Round 1
-
- Closed
-