Skip to main content

system.kanoa.lot.addLot

Description

Adds a new lot.

Syntax

addLot(lotInfo, userId)

Parameters:
  • lotInfo (dict)
  • userId (int): User ID

  • Returns:
  • lotId (int)
  • message (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    lotNamestring
    itemIdint
    itemUnitIdint

    Code Examples

    # Example usage
    >lotInfo = {'lotName': 'Lot#1', 'itemId': 67, 'itemUnitId': 2}
    >userId = 5
    >lotId,msg = system.kanoa.lot.addLot(lotInfo, userId)
    >print(lotId)