Skip to main content

system.kanoa.event.updateWorkOrderCount

This function requires KanoaOPS module

Description

Allows the count to be updated for a work order after a work order has been completed.

Syntax

updateWorkOrderCount(counterId, assetId, value, workOrderName, userId=None)
  • Parameters
      counterId - Counter ID.
      assetId - Asset ID.
      value (float) - Delta value.
      workOrderName - Work order name.
      userId (int) - User ID.
  • Returns
    Records deleted (int).
  • Code Example

    # Example Usage:
    counterId = 123
    assetId = 456
    value = 5.0
    workOrderName = 'WorkOrder123'
    userId = 999
    recordsDeleted = system.kanoa.event.updateWorkOrderCount(counterId, assetId, value, workOrderName, userId)