Skip to main content

system.kanoa.lot.getLotActivity

This function is part of the kanoaOPS module

Description

Returns lots filtered by the given parameters

Syntax

getLotActivity(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
  • Code Examples

    # Example usage
    >paramsDict = {'lotId': 1, 'lotName': '#123', 'itemId': 45, 'itemName': 'bangers', 'enabled': True, 'hasQty': True, assetId: 1, lotStateId: 3, lotStateReasonId: 8}
    >lotData = system.kanoa.lot.getLotActivity(paramsDict)
    >print(lotData)