system.kanoa.lot.updateLotEvent
Description
Updates an existing lot event.Syntax
updateLotEvent(lotEventInfo, userId)- Dictionary lotEventInfo - Information about the lot event to be updated, including lotEventId, lotId, lotEventQty, itemUnitId, assetId, itemSourceId, lotStateId, lotStateReasonId, workOrderId, shiftId, tStamp, and comment.
- int userId - User ID
- int - Number of records modified
Code Examples
# Example usage
lotEventInfo = {'lotEventId': 76, 'lotId': 1, 'workOrderId': 56, 'assetId': 1, 'itemSourceId': 2, 'lotStateId': 7, 'lotStateReasonId': 78, 'shiftId': 4, 'tStamp': somedate, 'comment': None}
userId = 123
recordsModified = system.kanoa.lot.updateLotEvent(lotEventInfo, userId)
print(recordsModified) # Print the number of records modified