Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Fulfilling a SalesOrder with LotNumberedInventoryItem types
[FONT=arial]I'm trying to fulfill a sales order that has items that are "LotNumberedInventoryItems". I initialize the fulfillment and add the appropriate package information. I populate the item with:
[CODE]
$lineitem->quantity = $totalqty;
$lineitem->serialNumbers = $lot;
$lineitem->inventoryDetail = new InventoryDetail();
$inventoryAssignmentList = new InventoryAssignmentList();
$inventoryAssignmentList->inventoryAssignment = new InventoryAssignment();
$inventoryAssignmentList->inventoryAssignment->quantity = $totalqty;
$lineitem->inventoryDetail->inventoryAssignmentList = $inventoryAssignmentList;
[/CODE]
The object, prior to soap conversion, looks like:[/FONT]
[CODE]
$lineitem->quantity = $totalqty;
$lineitem->serialNumbers = $lot;
$lineitem->inventoryDetail = new InventoryDetail();
$inventoryAssignmentList = new InventoryAssignmentList();
$inventoryAssignmentList->inventoryAssignment = new InventoryAssignment();
$inventoryAssignmentList->inventoryAssignment->quantity = $totalqty;
$lineitem->inventoryDetail->inventoryAssignmentList = $inventoryAssignmentList;
[/CODE]
The object, prior to soap conversion, looks like:[/FONT]
| item = Array | |
| ------> 0 is [ItemFulfillmentItem] | |
| --------> jobName = | |
| --------> itemReceive = | |
| --------> itemName = SOMEITEM | |
| --------> description = SOMEDESCRIPTION | |
| --------> location is [RecordRef] | |
| ----------> internalId = 1 |
0