Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
ACQ Sprint 70, ACQ Sprint 71
-
2
-
Thunderjet
Description
Overview
UIOR-234 added a new setting (persisted in mod-configuration) that specified whether or not approval is required when opening an order. While this is going to be enforced in the UI, it also needs to be enforced in the API.
Also we need to set approvalDate and approvedBy fields either when the order is approved or opened (see below for details.)
Approach
When opening an order, check this setting and whether or not the order is approved. If needed return an appropriate error message/code.
if the setting is false and the order is opened, we need to set the approval date to the current date and approvedBy is set to the user's UUID
Upon order approval, approvalDate needs to be set to the current date and approvedBy is set to the user's UUID.
Acceptance Criteria
- The approved validation described above is implemented
- Unit tests are updated
- API tests are updated
TestRail: Results
Attachments
Issue Links
- has to be done after
-
MODORDERS-291 Add approvedBy and approvalDate fields to purchase_order/composite_purchase_order
-
- Closed
-
- relates to
-
MODORDERS-292 Protect order approval with separate permission
-
- Closed
-
-
UXPROD-1777 Ordering updates and fixes - Q3 2019
-
- Closed
-
-
UIOR-234 Require order approval to "open" order
-
- Closed
-