Skip to main content

system.kanoa.lot.updateLotOperation

Description

Updates an existing lot operation.

Syntax

updateLotOperation(lotOperationInfo, userId)

Parameters:
  • lotOperationInfo (dict)
  • userId (int)

  • Returns:
  • Number of records modified (int)
  • message (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    lotOperationIdint
    lotOperationNamestring
    lotOperationColorstring
    allowInputLotsbool
    allowOutputLotsbool
    enabledbool

    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)