Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
ACQ Sprint 62
-
2
-
Thunderjet
Description
Overview:
UIOR-137 Scenario 3 requires PO Line numbers to be displayed in the error modal if associated access provider is inactive/not found. In scope of MODORDERS-170 the logic has been updated and corresponding error codes are returned with vendor id as parameter e.g.
{ "errors": [ { "message": "Order cannot be open as the associated access provider not found", "code": "accessProviderNotFound", "parameters": [ { "key": "id", "value": "160501b3-52dd-31ec-a0ce-17762e6a9b47" } ] }, { "message": "Order cannot be open as the associated access provider is inactive", "code": "accessProviderIsInactive", "parameters": [ { "key": "id", "value": "f64bbcae-e5ea-42b6-8236-55fefed0fb8f" } ] } ], "total_records": 2 }
Approach:
Update validation logic to return poLineNumber parameter as part of the error if it is available. Something like
error.getParameters().add(new Parameter().withKey(PO_LINE_NUMBER).withValue(poLine.getPoLineNumber()));
Note: Basically PO Line number can be provided only on PO update i.e. transition to Open. In case the new order is going to be placed with one or more PO Lines, the PO Line number will be empty or invalid, if specified...
Acceptance Criteria:
- Business logic is updated
- Unit and API tests have been updated.
TestRail: Results
Attachments
Issue Links
- has to be done before
-
UIOR-137 Error Modal: Order has inactive Vendor/Access Provider
-
- Closed
-
- relates to
-
UXPROD-1606 Ordering quality assurance enhancements - Round 1
-
- Closed
-