Skip to main content

system.kanoa.item.addItemClass

Requires kanoaOPS license

Description

Adds a new item class.

Syntax

addItemClass(itemClassInfo, userId)

Parameters:
  • itemClassInfo (dict)
  • userId (int): User ID.

  • Returns:
  • itemclassId (int): ID of the added item class.
  • Dictionary

    ParameterTypeRequiredNotes
    parentIdint
    itemClassNamestring
    itemClassDescriptionstring
    itemIdint
    itemClassColorstringe.g. '#FF00FF'
    enabledbool

    Code Examples

    # Example Usage:
    newItemClassId = system.kanoa.item.addItemClass({'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}, 123)