system.kanoa.lot.updateLotEvent
Syntax
addLotEvent(lotEventInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
lotEventId | int | ||
lotId | int | ||
lotEventQty | float | ||
workOrderId | int | ||
assetId | int | ||
itemSourceId | int | ||
lotStateId | int | ||
lotStateReasonId | int | ||
shiftId | int | ||
tStamp | date | ||
comment | string | ||
lotOperationEventId | int | ||
assetTransportId | int |
Code Examples
lotEventInfo = {
'lotEventId': 76,
'lotId': 1,
'lotEventQty': 100,
'workOrderId': 56,
'assetId':1,
'itemSourceId': 2,
'lotStateId': 7,
'lotStateReasonId': 78,
'shiftId': 4,
'tStamp': system.date.now(),
'comment':None,
'lotOperationEventId': 67,
'assetTransportId': None,
}
userId = 123
numRecordsModified, msg = system.kanoa.lot.updateLotEvent(lotEventInfo, userId)
print numRecordsModified, msg
>>> 1, None