Skip to main content

system.kanoa.order.updateProductionOrder

Requires kanoaOPS license

Description

Updates a work order.

Syntax

updateProductionOrder(woInfo, userId)
  • Parameters
      woInfo (dict)
      - workOrderId (int)
      - workOrderName (string)
      - modeId (int)
      - itemId (int)
      - itemUnitId (int)
      - assetId (int)
      - workOrderSourceId (int)
      - reqdQty (float)
      - dueDate (datetime)
      - workOrderStatusId (int)
      - note (string)
      - updateClients (bool): If true or missing, client screen will not be notified.
  • Returns
      # of records modified (int)
  • Code Examples

    recordsModified = system.kanoa.order.updateProductionOrder({'workOrderId': 1, 'workOrderName': 'WO-0001', ...}, 123)