Good day,
I’m trying to create a Normal PO which has lines that are linked to a Blanket PO via the REST API. The request I’m sending through is successful, however the line item in the Normal PO is not linked to the Blanket PO as expected.
When using the UI to link the Blanket PO Line, all works as expected.
From my understanding, we would need to pass through the OrigPONbr & OrigPOType fields, which should link them to the blanket PO, am I perhaps missing something else?
API Request & Response:
{
"Type": {
"value": "Normal"
},
"Branch": {
"value": "FTNHQ"
},
"Date": {
"value": "2023-03-08T00:00:00+02:00"
},
"Hold": {
"value": true
},
"Owner": {
"value": "FTNHQ-1009"
},
"PromisedOn": {
"value": "2023-03-15T00:00:00+02:00"
},
"VendorID": {
"value": "10079"
},
"Description": {
"value": "Test Blanket PO Creation"
},
"Details": [
{
"BranchID": {
"value": "FTNHQ"
},
"WarehouseID": {
"value": "FTNHQCAPRI"
},
"InventoryID": {
"value": "sku1"
},
"UOM": {
"value": "CAS20"
},
"OrderQty": {
"value": 2.000000
},
"OrigPONbr": {
"value": "FTNHQ-PO1034314"
},
"OrigPOType": {
"value": "Blanket"
}
}
]
}
Response:
{
"id": "8a5eca14-85bd-ed11-a7c5-1ae3d21b70c4",
"rowNumber": 1,
"note": {
"value": ""
},
"BaseCurrencyID": {
"value": "ZAR"
},
"Branch": {
"value": "FTNHQ"
},
"ControlTotal": {
"value": obscured
},
"CurrencyEffectiveDate": {
"value": "2023-03-08T00:00:00+02:00"
},
"CurrencyID": {
"value": "GBP"
},
"CurrencyRate": {
"value": 22.03079906
},
"CurrencyRateTypeID": {
"value": "SPOT"
},
"CurrencyReciprocalRate": {
"value": 0.04539100
},
"Date": {
"value": "2023-03-08T00:00:00+02:00"
},
"Description": {
"value": "Test Blanket PO Creation"
},
"Details": [],
"Hold": {
"value": true
},
"LastModifiedDateTime": {
"value": "2023-03-08T09:44:41.376533+02:00"
},
"LineTotal": {
"value": obscured
},
"OrderNbr": {
"value": "FTNHQ-PO1034319"
},
"OrderTotal": {
"value": obscured
},
"Owner": {
"value": "FTNHQ-1009"
},
"PromisedOn": {
"value": "2023-03-15T00:00:00+02:00"
},
"Status": {
"value": "On Hold"
},
"TaxTotal": {
"value": obscured
},
"Terms": {
"value": "obscured"
},
"Type": {
"value": "Normal"
},
"VendorID": {
"value": "10079"
},
"VendorRef": {},
"VendorTaxZone": {},
"custom": {}
}
PO Line after creating it via API:
PO Line when using UI:
Thanks in advance!