Skip to main content

system.kanoa.lot.updateLot

This function is part of the kanoaOPS module

Description

Updates an existing lot.

Syntax

updateLot(lotInfo, userId)
  • Parameters
      Dictionary lotInfo - Information about the lot to be updated, including lotEventId, lotName, and itemId.
      int userId - User ID
  • Returns
      int - Number of records modified
  • Code Examples

    # Example usage
    lotInfo = {'lotEventId': 1, 'lotName': 'Lot#2', 'itemId': 68}
    userId = 123
    recordsModified = system.kanoa.lot.updateLot(lotInfo, userId)
    print(recordsModified) # Print the number of records modified