Skip to main content

system.kanoa.item.addItemPeriod

Requires kanoaOPS license

Description

Adds the period if it doesn't already exist.

Syntax

addItemPeriod(periodInfo, userId)

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

  • Returns:
  • itemPeriodId (int): ID of the added item period.
  • Dictionary

    ParameterTypeRequiredNotes
    itemPeriodNamestringe.g. 'second'
    enabledbool

    Code Examples

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