PayrollEarningGenerationTask.getEarningRate Method [AX 2012]
Is a generic method that retrieves the payroll earning rate for the worker.
Syntax
public PayrollEarningRate getEarningRate(
HcmWorkerRecId _workerRecId,
HcmPositionRecId _positionRecId,
TransDate _toDate,
PayrollRateBasis _rateBasis,
PayrollTimePeriod _timePeriod)
Run On
Called
Parameters
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The record ID of the worker.
- _positionRecId
Type: HcmPositionRecId Extended Data Type
The record ID of the position.
- _toDate
Type: TransDate Extended Data Type
The end date of the pay period.
- _rateBasis
Type: PayrollRateBasis Enumeration
The PayrollRateBasis values on which the rate has to be calculated.
- _timePeriod
Type: PayrollTimePeriod Enumeration
The payroll period for the calculation.
Return Value
Type: PayrollEarningRate Extended Data Type
The compensation for the pay period.