Skip to main content

kanoa.event.addCounterEvent

Description

Adds a count to the counterEvent table. This is an updated count function that support itemStates, items and workorders being associated to counts.

Syntax

addCountEvent(counterInfo, userId)
  • Parameters
      counterInfo (dict)
      - counterId (int)
      - deltaValue (float)
      - itemStateId (int)
      - itemId (int)
      - workOrderId (int)
      - tStamp (datetime)
      userId (int)
  • Returns
      counterId (int)
      msg (string): none if success
  • Code Example

    # Example Usage:
    counterId = 123
    deltaValue = 5.0
    tStamp = timestamp
    system.kanoa.event.addCountEvent(counterId, deltaValue, tStamp)