Skip to main content

system.kanoa.lot.updateLotStateReason

Description

Updates an existing lot state reason.

Syntax

updateLotStateReason(lotStateReasonInfo, userId)

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

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

    # Example usage
    >lotStateReasonInfo = {'lotStateReasonId': 3,'lotStateId': 1, 'lotStateReasonName': 'Bad Color', 'enabled': False}
    >userId = 5
    >dataset = system.kanoa.lot.updateLotStateReason(lotStateReasonInfo, userId)
    >print(dataset) # Print the updated dataset