Skip to main content

system.kanoa.lot.addLot

This function is part of the kanoaOPS module

Description

Adds a new lot.

Syntax

addLot(lotInfo, userId)
  • Parameters
      lotInfo (dict)
      - lotName (string)
      - itemId (int)
      -itemUnitId (int)
      int userId - User ID
  • Returns
      lotId (int)
      message (string): None if success
  • Code Examples

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