Skip to main content

system.kanoa.lot.updateLotEvent

This function is part of the kanoaOPS module

Description

Updates an existing lot event.

Syntax

updateLotEvent(lotEventInfo, userId)
  • Parameters
      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
  • Returns
      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