Allow EBSCONET to update order with multiple locations

Description

Overview: Updating order in folio with an electronic quantity of 2 and two locations. EBSCONET sending quantity of 3 and the order can not be updated

Steps to Reproduce:

  1. Log into some FOLIO environment as User X

  2. Create order

  3. create order line with electronic quantity of 2

  4. Add two locations with 1 quantity each

  5. save and open POL

  6. Send update request from EBSCONET with quantity of 3

Expected Results: Order quantity and price are updated. 1st location is given a quantity of 2 and second location still a quantity of 1

Actual Results: Error shown

PUT status code 'UnprocessableEntity' {"errors":[{"message":"[422 Unprocessable Entity] during [PUT] to http://orders/order-lines/15123210-639b-4cde-8403-8d12e4da2354 [OrdersClient#putOrderLine(String,CompositePoLine)]: [{\n \"errors\" : [ {\n \"message\" : \"PO Line electronic quantity and Locations electronic quantity do not match\",\n \"code\" : \"electronicLocCostQtyMismatch\",\n \"parameters\" : [ {\n \"key\" : \"poLineNumber\",\n \"value\" : \"16370-1\"\n } ]\n } ]\n}]","type":"-1"}],"total_records":1}

Additional Information: see example in bugfest-juniper

URL: https://bugfest-juniper.folio.ebsco.com/orders/view/c6fb64f7-4fe2-41e3-ab70-989e6b993fb4?query=16370
Interested parties:

CSP Request Details

Approved on Slack channel 8 Sept 2021

CSP Rejection Details

None

Potential Workaround

None

Attachments

3
  • 14 Sep 2021, 07:19 AM
  • 14 Sep 2021, 07:14 AM
  • 10 Sep 2021, 01:15 PM

Checklist

hide

TestRail: Results

Activity

Show:

Dennis BridgesSeptember 17, 2021 at 3:05 PM

test successful in bugfest-juniper

Siarhei HrabkoSeptember 14, 2021 at 7:20 AM

Please make full test flow via ebsconet system if it needed

Siarhei HrabkoSeptember 14, 2021 at 7:19 AM

Verified backend part on bugfest Juniper env via Postman collection

Created p/e mix poline with physical quatity of 1 and electronic 3. Ebsconet response:

 

GET /ebsconet/orders/order-lines/16799-1 { "vendor": "Z1517LEG$%", "unitPrice": 33.0, "currency": "USD", "vendorReferenceNumbers": [], "poLineNumber": "16799-1", "quantity": 4, "fundCode": "001z", "publisherName": "Papercut Films", "vendorAccountNumber": "", "workflowStatus": "Open" }

Sent update request with total quantity of 1

PUT /ebsconet/orders/order-lines/16799-1 { "vendor": "Z1517LEG$%", "unitPrice": 33.0, "currency": "USD", "vendorReferenceNumbers": [], "poLineNumber": "16799-1", "quantity": 1, "fundCode": "001z", "publisherName": "Papercut Films", "vendorAccountNumber": "", "workflowStatus": "Open" }

Cost and location quantities updated

Oleksii PetrenkoSeptember 13, 2021 at 8:30 AM

Deployed to juniper bugfest. 

Please verify

Dennis BridgesSeptember 10, 2021 at 4:30 PM

Test successful in rancher environment, amazing job !

cc:

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

R2 2021 Hot Fix #2

RCA Group

Incomplete/missing requirements

CSP Approved

Yes

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 11, 2021 at 7:27 PM
Updated June 27, 2022 at 9:31 AM
Resolved September 10, 2021 at 1:25 PM
TestRail: Cases
TestRail: Runs

Flag notifications