system.kanoa.order.getProductionOrders
Description
Returns production orders linked to assets for given parameters.Syntax
getProductionOrders(paramsDict)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes |
|---|---|---|---|
| assetPath | string | ||
| assetId | int | ||
| assetIdList | list[int] | ||
| itemSourceId | int | ||
| itemName | string | ||
| itemPath | string | ||
| itemIdList | list[int] | ||
| itemClassName | string | ||
| itemClassId | int | ||
| itemClassIdList | list[int] | ||
| workOrderName | string | ||
| workOrderId | int | ||
| workOrderStatusList | list[string] | e.g. ['Released'] | |
| workOrderStatusName | string | e.g. 'In Progress' | |
| startDate | datetime | ||
| endDate | datetime | ||
| ignoreActualQty | bool | When false, all production against an order will be checked to add an 'actualQty' produced against an order. This is slower. |
Code Examples
# Example Usage:
> productionOrders = system.kanoa.order.getProductionOrders({'workOrderName': 'WO-0001'})