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.
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