Done
Details
Assignee
Mariia AloshynaMariia AloshynaReporter
Volodymyr RohachVolodymyr RohachLabels
Priority
P3Story Points
3Sprint
NoneDevelopment Team
FolijetFix versions
Release
Orchid (R1 2023)TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Mariia Aloshyna
Mariia AloshynaReporter
Volodymyr Rohach
Volodymyr RohachLabels
Priority
Story Points
3
Sprint
None
Development Team
Folijet
Fix versions
Release
Orchid (R1 2023)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created December 8, 2022 at 12:54 PM
Updated February 24, 2023 at 12:13 PM
Resolved January 13, 2023 at 3:01 PM
The main goal is to improve mapping profile for Orders on UI-side.
It seems like we need to improve paths for several fields:
Change "poStatus" to "workflowStatus".
Do not send "shipToAddress" field on the BE-side.
Do not send "billToAddress" field on the BE-side.
Change "title.title" to "titleOrPackage" (simple string)
Change "title.receivingNote" to "details.receivingNote" (move it to the "details" object)
Change "internalNote" to "description".
Do not send "createdOn" field on the BE-side.
Change "cancellationDescription" to "cancellationRestrictionNote".
Change "accountNo" to "vendorDetail.vendorAccount" (move it to the "vendorDetail" object)
Do not send "useExchangeRate" field on the BE-side.
Change "cost.electronicUnitPrice" to "cost.listUnitPriceElectronic".
Change "eresource.activationStatus" to "eresource.activated"
Make "orderType" enabled.
Move "title.isAcknowledged" - to "details.isAcknowledged" (move it to the "details" object)
Change "orderType" value from "One-time" to "One-Time"
Change path "order.po.acqUnitIds" to "order.po.acqUnitIds[]" (we need an array on the BE-side)
Add property: "repeatableFieldAction": "EXTEND_EXISTING" to the object "order.poLine.fundDistribution[]". Resulted should looks like:
"name": "fundDistribution",
"enabled": "true",
"path": "order.poLine.fundDistribution[]",
"value": "",
"repeatableFieldAction": "EXTEND_EXISTING",
"subfields": [...
18. Add property: "repeatableFieldAction": "EXTEND_EXISTING" to the object "order.poLine.locations[]". Resulted should looks like:
"name": "locations",
"enabled": "true",
"path": "order.poLine.locations[]",
"value": "",
"repeatableFieldAction": "EXTEND_EXISTING",
"subfields": [...
19. Add property: "repeatableFieldAction": "EXTEND_EXISTING" to the object "order.poLine.details.productIds[]". Resulted should looks like:
"name": "productIds",
"enabled": "true",
"path": "order.poLine.details.productIds[]",
"value": "",
"repeatableFieldAction": "EXTEND_EXISTING",
"subfields": [...
20. Field "order.poLine.checkinItems" should be as booelan on BE (true/false). On the UI this field called as "Receiving workflow". There is a mechanism on UI for orders: Independent = true, Synchronized = false. It seems like we need the same one for the mapping profile, but wrapped into quotes, so boolean values look like 'true'/'false'. Note: if you have any questions regarding this field - feel free to ask @Yury Saukou
UPDATED after re-checking via new improvements from UI:
21. Add property: "repeatableFieldAction": "EXTEND_EXISTING" to the object "order.poLine.contributors[]". Resulted should looks like:
"name": "productIds",
"enabled": "true",
"path": "order.poLine.contributors[]",
"value": "",
"repeatableFieldAction": "EXTEND_EXISTING",
"subfields": [...
22. Add property: "repeatableFieldAction": "EXTEND_EXISTING" to the object "order.poLine.vendorDetail.referenceNumbers[]". Resulted should looks like:
"name": "productIds",
"enabled": "true",
"path": "order.poLine.vendorDetail.referenceNumbers[]",
"value": "",
"repeatableFieldAction": "EXTEND_EXISTING",
"subfields": [...
23. Change sending values for "Create Inventory"-fields in mapping profile. From JSON-prospective they have pathes: "order.poLine.eresource.createInventory" and "order.poLine.physical.createInventory". Currently from UI there are such values: "Instance, holdings, item"; "Instance, holdings"; "Instance"; "None". But there should be these values: "Instance, Holding, Item"; "Instance, Holding"; "Instance"; "None"