Skip to main content

system.kanoa.lot.updateLotEvent

Syntax

addLotEvent(lotEventInfo, userId)

Parameters:
  • lotEventInfo (dict)
  • userId (int): User ID

  • Returns:
  • lotEventId (int)
  • msg (string): None if successful
  • Dictionary

    ParameterTypeRequiredNotes
    lotEventIdint
    lotIdint
    lotEventQtyfloat
    workOrderIdint
    assetIdint
    itemSourceIdint
    lotStateIdint
    lotStateReasonIdint
    shiftIdint
    tStampdate
    commentstring
    lotOperationEventIdint
    assetTransportIdint

    Code Examples

    lotEventInfo = {
    'lotEventId': 76,
    'lotId': 1,
    'lotEventQty': 100,
    'workOrderId': 56,
    'assetId':1,
    'itemSourceId': 2,
    'lotStateId': 7,
    'lotStateReasonId': 78,
    'shiftId': 4,
    'tStamp': system.date.now(),
    'comment':None,
    'lotOperationEventId': 67,
    'assetTransportId': None,
    }
    userId = 123
    numRecordsModified, msg = system.kanoa.lot.updateLotEvent(lotEventInfo, userId)
    print numRecordsModified, msg
    >>> 1, None