Skip to main content

system.kanoa.item.addItemPeriod

This function requires KanoaOPS module

Description

Adds the period if it doesn't already exist (kanoaOPS).

Syntax

addItemPeriod(periodInfo, userId)
  • Parameters
      periodInfo (Dictionary) - Dictionary containing period information (e.g., {'itemPeriodName': 'second', 'enabled': True}).
      userId (Integer) - User ID.
  • Returns
      itemPeriodId (Integer) - ID of the added item period.
  • Code Examples

    # Example Usage:
    newItemPeriodId = system.kanoa.item.addItemPeriod({'itemPeriodName': 'second', 'enabled': True}, 123)