Skip to main content

system.kanoa.lot.updateLotOperation

This function is part of the kanoaOPS module

Description

Updates an existing lot operation.

Syntax

updateLotOperation(lotOperationInfo, userId)
  • Parameters
      lotOperationId (int)
      lotOperationName (string)
      lotOperationColor (string)
      allowInputLots (bool)
      allowOutputLots (bool)
      enabled (bool)
      userId (int)
  • Returns
      Number of records modified (int)
      message (string): None if success
  • Code Examples

    # Example usage
    >lotOperationInfo = {'lotOperationId': 1, lotOperationName': 'Scrap', 'lotOperationColor': '#0000FF', allowInputLots': True, 'allowOutputLots': False, enabled': True}
    >userId = 5
    >retVal, msg = system.kanoa.lot.updateLotOperation(lotOperationInfo, userId)
    >print(retVal)