Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Won't Do
-
None
-
None
-
None
-
customfield_11100 46227
-
Thunderjet
Description
Purpose/Overview:
In order to support UIIN-574 - In the Acquisition accordion for the holding need to show order details information
Requirements/Scope:
Prevent creation order line where Location element contains both "locationId" and "holdingId".
One of "locationId" and "holdingId" should be in Location element
Use Cases:
Background: for each order and not package poLines
1. Location of the POL should contain reference only on holding (holdingId)
Given “Create inventory” for physical or electronic have “INSTANCE_HOLDING” OR "INSTANCE_HOLDING_ITEM"
When create or update POL
Then Location element of the POL should contain only "holdingId"
2. Location of the POL should contain reference only on location (locationId)
Given “Create inventory” for physical or electronic have “INSTANCE" OR "NONE"
When create or update POL
Then Location element of the POL should contain only "locationId"
Approach:
- Create method in the org.folio.orders.utils.validators.CompositePoLineValidationUtil.isLocationValid(CompositePoLine compPOL)
- Use method from (1) in the :
- org.folio.helper.PurchaseOrderLineHelper#createPoLine(org.folio.rest.jaxrs.model.CompositePoLine)
- org.folio.helper.PurchaseOrderLineHelper#updateOrderLine(org.folio.rest.jaxrs.model.CompositePoLine)
Acceptance criteria:
- Logic updated
- Unit tests
- API Tests updated or created
TestRail: Results
Attachments
Issue Links
- defines
-
UXPROD-1925 Holdings: Display of POL number, Order status, Order date and Price in the Acquisition accordion
-
- Closed
-
- has to be done after
-
MODORDSTOR-200 Define "inventory order summary" model for the acquisition accordion in inventory
-
- Closed
-
- relates to
-
UIIN-574 Holdings record. New elements. POL number, Order status, Order status date, Price in the Acquisition accordion
-
- Closed
-