Skip to main content

system.kanoa.item.updateItemStateClass

Description

Updates an item state class

Syntax

addItemStateClass(itemStateClassInfo, userId)
  • Parameters
      itemStateClassInfo (dict)
      - itemStateClassId (int)
      - itemStateClassName (string)
      - parentId (int)
      - itemStateClassDescription (string)
      - enabled (bool)
      userId (int)
  • Returns
      # of records modified (int)
      msg (string): None if success
  • Code Examples

    # Example Usage:
    userId = 1
    itemStateClassInfo = {'itemStateClassId': 47, 'itemStateClassName': 'Scrap Reasons', 'parentId': None, 'itemClassDescription': None, 'enabled': True}
    retval, msg = system.kanoa.item.updateItemStateClass(itemStateClassInfo, userId)