Skip to main content

system.kanoa.item.addItemStateClass

Description

Adds a new item state class

Syntax

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

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