Skip to main content

system.kanoa.lot.addLotStateReason

Description

Adds a new lot state reason.

Syntax

addLotStateReason(lotStateReasonInfo, userId)

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

  • Returns:
  • lotStateReasonId (int)
  • message (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    lotStateReasonNamestring
    lotStateIdint
    enabledbool

    Code Examples

    # Example usage
    >lotStateReasonInfo = {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'enabled': True}
    >lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
    > print(lotStateReasonId)