Skip to main content

system.kanoa.item.updateItemAssetRate

This function requires KanoaOPS module

Description

Updates the rateInfo in the itemAssetRate table (kanoaOPS).

Syntax

updateItemAssetRate(rateInfo, userId)
  • Parameters
      rateInfo (Dictionary) - Dictionary containing updated rate information (e.g., {'itemAssetRateId': 1, 'itemId': 1, 'assetId': 56, 'standardRate': '100.0', 'scheduleRate': 50.0, 'itemPeriodId': 1, 'infeedUnitId': 7, 'outfeedUnitId': 5, 'wasteUnitId': 7, 'packageCount': 24, 'itemSourceId': 1, 'enabled': True}).
      userId (Integer) - User ID.
  • Returns
      # of records modified (Integer).
  • Code Examples

    # Example Usage:
    modifiedRecords = system.kanoa.item.updateItemAssetRate({'itemAssetRateId': 1, 'itemId': 1, 'assetId': 56, 'standardRate': '100.0', 'scheduleRate': 50.0, 'itemPeriodId': 1, 'infeedUnitId': 7, 'outfeedUnitId': 5, 'wasteUnitId': 7, 'packageCount': 24, 'itemSourceId': 1, 'enabled': True}, 123)