Skip to main content

system.kanoa.lot.getLotQty

This function is part of the kanoaOPS module

Description

Returns lots and their respective quantities

Syntax

getLotQty(paramsDict)
  • Parameters
      paramsDict (dict)
      - hasQty (bool)
      - assetId (int)
      - assetPath (string)
      - lotId (int)
      - lotName (string)
      - itemId (int)
      - itemPath (string)
      - itemSourceId (int)
      - itemSourceName (string)
      - enabled (bool)
      - lotStateId (int)
      - lotStateName (string)
      - lotStateReasonId (int)
      - lotStateReasonName (string)
      - lotOperationId (int)
      - lotOperationName (string)
      - startDate (datetime)
      - endDate (datetime)
  • Returns
      pyDataset - Lot dataset.
  • Code Examples

    # Example usage
    >paramsDict = {'lotId': 1, 'assetId': 1}
    >lotData = system.kanoa.lot.getLotQty(paramsDict)
    >print(lotData) # Print the retrieved lot quantity