system.kanoa.lot.addLot
Description
Adds a new lot.Syntax
addLot(lotInfo, userId)- lotInfo (dict)
- - lotName (string)
- - itemId (int)
- -itemUnitId (int)
- int userId - User ID
- 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)