Skip to main content

system.kanoa.order.getProductionOrders

This function requires KanoaCore module

Description

Returns production orders linked to assets for given parameters (kanoaCore).

Syntax

getProductionOrders(paramsDict)
  • Parameters
      paramsDict (Dictionary) - Parameters to filter production orders.
  • Returns
      Basic Dataset.
  • Code Example

    # Example Usage:
    productionOrders = system.kanoa.order.getProductionOrders({'enabled': True, 'assetPath': 'Kanoa Industries%', ...})

    # Dictionary i.e. {'enabled':True, 'assetPath': 'Kanoa Industries%', 'assetId': 1, 'assetIdList':[1,2], 'itemSourceId':[1]}
    # i.e. {itemName': 'Bangers', 'itemPath':'FG\Bread%', 'itemId':1, 'itemIdList':[1,2,3], 'itemClassName': 'Bread%', itemClassId':1, 'itemClassIdList':[1,2,3]}
    # i.e {'workOrderName': 'WO-0001', 'workOrderId': 1, 'workOrderStatusList: ['Released'], 'workOrderStatusName' = ['In Progress'']}
    # i.e {'startDate': someDate, 'endDate': someDate}
    #