Skip to main content

system.kanoa.order.updateProductionOrder

Description

Updates a work order.

Syntax

updateProductionOrder(woInfo, userId)

Parameters:
  • woInfo (dict): Dictionary containing production order details.
  • userId (int)

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

    ParameterTypeRequiredNotes
    workOrderIdint
    workOrderNamestring
    modeIdintGenerally set to production mode, but could be any mode such as the modeId for experimental as an example.
    itemIdint
    itemUnitIdint
    assetIdint
    workOrderSourceIdint
    reqdQtyfloat
    dueDatedatetime
    workOrderStatusIdint
    notestring
    updateClientsboolIf 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)