system.kanoa.order.updateProductionOrder
Description
Updates a work order.Syntax
updateProductionOrder(woInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
workOrderId | int | ||
workOrderName | string | ||
modeId | int | Generally set to production mode, but could be any mode such as the modeId for experimental as an example. | |
itemId | int | ||
itemUnitId | int | ||
assetId | int | ||
workOrderSourceId | int | ||
reqdQty | float | ||
dueDate | datetime | ||
workOrderStatusId | int | ||
note | string | ||
updateClients | bool | If set to false, clients will not be automatically updated. If missing or true clients will be updated, useful when large import is taking place. |
Code Examples
recordsModified = system.kanoa.order.updateProductionOrder({'workOrderId': 1, 'workOrderName': 'WO-0001', ...}, 123)