Skip to main content

system.kanoa.lot.updateLotOperationEvent

This function is part of the kanoaOPS module

Description

Adds a new lot event.

Syntax

updateLotOperationEvent(lotOperationEventInfo, userId)
  • Parameters
      lotOperationEventInfo (dict)
      - lotOperationEventId (int)
      - lotOperationId (int)
      - assetId (int)
      - tStamp (datetime)
      - enabled (bool)
      int userId - User ID
  • Returns
      retVal (int): # of records modified
      msg (string): None if successful
  • Code Examples

    # Example usage
    >lotOperationEventInfo = {'lotOperationEventId;: 6, 'lotOperationId': 1, 'assetId': 18, tStamp': system.date.now(), enabled': True}
    >userId = 5
    >retVal, msg = system.kanoa.lot.updateLotOperationEvent(lotOperationEventInfo, userId)
    >print(retVal)