Skip to main content

system.kanoa.lot.addLotState

This function is part of the kanoaOPS module

Description

Adds a new lot state.

Syntax

addLotState(lotStateInfo, userId)
  • Parameters
      lotStateInfo (dict)
      - lotStateName (string)
      -enabled (bool)
      int userId - User ID
  • Returns
      lotStateId (int)
      message (string): None if success
  • Code Examples

    # Example usage
    >lotStateInfo = {'lotStateName': 'QA Hold', 'enabled': True}
    >userId = 5
    >lotStateId,msg = system.kanoa.lot.addLotState(lotStateInfo, userId)
    >print(lotId)