veenasa garimella
12/06/2024, 8:30 PMCeligo AI
12/06/2024, 8:31 PMAI generated answer (using internal Slack threads):To transform a Transfer Order to generate an Item Fulfillment Event using REST webservice, you can use the
record.transform()
method in SuiteScript. However, there are a few things you need to consider:
1. The Transfer Order must be open and pending receipt. If it's already fulfilled, you can't fulfill it again.
2. All items must be committed to the Transfer Order.
3. If there are multiple item fulfillments against a given transfer order, you need to specify which specific item fulfillment you want to receive against. Unfortunately, there is no direct link between an invoice and the item fulfillment(s) it was created from.
Here is a sample JSON payload you can use to transform a sales order to item fulfillment:
json
{
"tranDate": "2023-07-03",
"memo": "item fulfillment test",
"shippingCost": 2000,
"orderType": "string",
"createdDate": "2023-07-03T21:46:48.812Z",
"shipOverride": false,
"shipStatus": {"id": "C"},
"status": { "id": "Enviado" },
"exchangeRate": 1,
"shipCountry": {"id": "CL"},
"item": {
"items": [
{
"itemReceive": true,
"custcol_sk_sku": "7500435113465",
"itemUnitPrice": 1000,
"lineEntity": 1,
"line": 1,
"amount": 3000,
"quantity": 3,
"orderLine": 1,
"item": {
"externalId": "7500435113465"
},
"location": {"id": "113"},
"inventoryLocation": {"id": "113"},
"inventoryDetail": {
"quantity": 3,
"item": {"externalId": "7500435113465"},
"location": {"id": "113"},
"inventoryLocation": {"id": "113"},
"inventoryAssignment": {
"items": [
{
"quantity": 3,
"inventoryStatus": {"id": "1"}
}
]
}
}
}
]
},
"entity": {"id": "1534"},
"location": {"id": "113"},
"inventoryLocation": {"id": "113"},
"shipMethod": {"id": "5764"},
"subsidiary": { "id": "5" }
}
Please note that the inventoryLocation
query parameter might not be supported in REST requests. You can double-check this by fulfilling in the UI and checking the query parameters of the URL.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/06/2024, 8:31 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831715465
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826400936
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822944701
Celigo AI
12/06/2024, 8:31 PM