Skip to main content

system.kanoa.tooling.getStandardRate(paramsDict)

Returns the standard (part) rate of an item on an asset at a time, from the tools mounted then; first match wins: a rate for the item and a mounted tool ('tool'), the mounted tool's cycle rate x the item's parts per cycle x the asset + item rate's package count ('cycle'; parts per cycle are outfeed units, the standard rate is in infeed units), else the asset + item rate ('asset'). This is what a run starting then is stamped with; a run's own standardRate override isn't applied.


Parameters​

paramsDict Dictionary

- assetIdIntegerRequired
- itemIdIntegerRequired
- atDateDefaults to now

Returns​

rate pyDataset: one row (rateSource, standardRate, period, toolingAssetId, toolingName, cycleRate, partsPerCycle, itemAssetRateId, packageCount), or none when there's no rate


Example​

paramsDict = {'assetId': 1, 'itemId': 1, 'at': system.date.now()}
rate = system.kanoa.tooling.getStandardRate(paramsDict)