Improve mapping profile for Orders.

CSP Rejection Details

None

CSP Request Details

None

CSP Approved

None

Description

The main goal is to improve mapping profile for Orders on UI-side.

It seems like we need to improve paths for several fields:

  1. Change "poStatus" to "workflowStatus".

  2. Do not send "shipToAddress" field on the BE-side.

  3. Do not send "billToAddress" field on the BE-side.

  4. Change "title.title" to "titleOrPackage" (simple string)

  5. Change "title.receivingNote" to "details.receivingNote" (move it to the "details" object)

  6. Change "internalNote" to "description".

  7. Do not send "createdOn" field on the BE-side.

  8. Change "cancellationDescription" to "cancellationRestrictionNote".

  9. Change "accountNo" to "vendorDetail.vendorAccount" (move it to the "vendorDetail" object)

  10. Do not send "useExchangeRate" field on the BE-side.

  11. Change "cost.electronicUnitPrice" to "cost.listUnitPriceElectronic".

  12. Change "eresource.activationStatus" to "eresource.activated"

  13. Make "orderType" enabled.

  14. Move "title.isAcknowledged"  - to "details.isAcknowledged" (move it to the "details" object)

  15. Change "orderType" value from "One-time" to "One-Time" 

  16. Change path "order.po.acqUnitIds" to "order.po.acqUnitIds[]" (we need an array on the BE-side)

  17. 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  

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"

 

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Volodymyr RohachJanuary 13, 2023 at 2:20 PM

Hi everyone! I checked, and it seems like all the fields for Order and Order-line entities are now mapped fine, after the work which was done in the current ticket. (All not-mappable fields will be handled inside Handler in mod-orders). Thank you, !

I think we can close this ticket, so feel free to do it.

Mariia AloshynaJanuary 13, 2023 at 9:21 AM

Hi , will test it. There is nothing to check manually

Ann-Marie BreauxJanuary 13, 2023 at 5:08 AM

Hi Is there anything that needs to be manually checked on this issue before it is closed?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

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
Loading...