Skip to main content

system.kanoa.order.updateProductionOrder

Description

Updates a work order.

Syntax

updateProductionOrder(woInfo, userId)

Parameters:
  • woInfo (dict): Dictionary containing work order details.
  • userId (int): ID of the user performing the update.

  • Returns:
  • recordsModified (int): # of records modified.
  • Dictionary

    ParameterTypeRequiredNotes
    workOrderIdint
    workOrderNamestring
    modeIdint
    itemIdint
    itemUnitIdint
    assetIdint
    workOrderSourceIdint
    reqdQtyfloat
    dueDatedatetime
    workOrderStatusIdint
    notestring
    updateClientsboolIf true or missing, client screen will not be notified.

    Code Examples

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