system.mes.inventory.getLotsForMaterial
Description
Retrieves a list of all Inventory Lots records in the system for a specified material using its ID or path.
Syntax
system.mes.inventory.getLotsForMaterial(materialIdOrPath)
Parameters
Parameter | Type | Description |
---|---|---|
materialIdOrPath | String | The ID or path of the material associated with the inventory's lot. |
Returns
Returns a list of JSON objects representing all inventory lots for a specified material.
Code Examples
# Retrieve inventory lots for a material
lots_for_material = system.mes.inventory.getLotsForMaterial('Bottle/Milk')
# Output the inventory lots
print(lots_for_material)