Skip to main content

system.kanoa.item.addItemClass

This function requires KanoaOPS module

Description

Adds a new item class (kanoaOPS).

Syntax

addItemClass(itemClassInfo, userId)
  • Parameters
      itemClassInfo (Dictionary) - Dictionary containing item class information (e.g., {'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}).
      userId (Integer) - User ID.
  • Returns
      itemclassId (Integer) - ID of the added item class.
  • Code Examples

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