Skip to main content

system.kanoa.lot.updateLotState

Description

Updates an existing lot state.

Syntax

updateLotState(lotStateInfo, userId)

Parameters:
  • lotStateId (int)
  • lotStateName (string)
  • enabled (bool)
  • userId (int)

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

    # Example usage
    >lotStateInfo = {'lotStateId': 1, 'lotStateName': 'QA Hold', 'enabled': False}
    >userId = 5
    >dataset = system.kanoa.lot.updateLotState(lotStateInfo, userId)
    >print(dataset) # Print the updated dataset