Sepasoft MES Module Suite
system.mes.workorder.getActualMaterialLots(workOrderUUID, beginDate, endDate, lotUseType)
Get the Material Lots associated with a particular Work Order.
Syntax
system.mes.workorder.getActualMaterialLots(workOrderUUID, beginDate, endDate, lotUseType)
- Parameters
String workOrderUUID - The UUID of the Work Order to return the associated Material Lots for.
Date beginDate - Date (inclusive) when the Operations Request for this Work Order was executed.
Date endDate - Date (inclusive) when the Operations Request for this Work Order finished executing.
String lotUseType - The lot's use-type. Valid uses are: 'In', 'Out', 'Consumable', and 'By-product'.
- Returns
MESList<MESObjectLink> matLotLinks - A list of MESObjectLinks that each have a reference to an MESMaterialLot object.
- Scope
All
Python |
#This code will print the OUT-Material Lots associated with a Work Order outMatLotLinks = system.mes.workorder.getActualMaterialLots('72b408bf-aaf4-420f-9ec5-4aa7fabbff83', startDate, endDate, 'Out') for outMaterialLotLink in outMatLotLinks: print(outMaterialLotLink.getMESObject()) |
Output
Code |
MaterialLot (4ddb8ae8-4590-4499-815a-904d5ed86368, 0000000005, 0 parents, 0 children, 0 custom properties, 0 complex properties) |
Sepasoft MES Module Suite