Hi Experts,
We encounter one problem when using OData Service or API to the create the sales Order.
We find if we don't pass crossReferenceNumber for item in the request, the item's unit price is assigned as the price we passed in the request body.
But if we assign crossReferenceNumber for item in the request, the item's unit price is assigned as the price cacluclated by 365BC automatically?
Does anyone can shed me some lights on this issue?
We want assign the price for the item as we passed in the request body when we have crossReferenceNumber for the item.
Below is the sample request body we use to create sales order,now the price for the item is not created as 21.0 in the 365BC.
{
"ASNType": "Standard",
"documentType": "Order",
"sellToCustomerNumber": "10000",
"orderDate": "2020-10-06",
"TRCPONumber": "CrossRef-TW-2",
"number": "CMP1162",
"locationCode": "EAST",
"salesOrderLines": [
{
"documentType": "Order",
"type": "Item",
"quantity": 1,
"crossReferenceNumber": "667",
"number": "1896-S",
"lineNumber": 10000,
"unitPrice": 21.0
}
]
}
Thanks