PayrollCalculatePayStatementBenefits::getBenefitTotalQueryByDateRange Method [AX 2012]
Calculates the base deduction amount for all payroll categories.
server public static Query getBenefitTotalQueryByDateRange(
TransDate _startDate,
TransDate _endDate,
[PayrollPayStatementRecId _payStatementRecId,
HcmBenefitRecId _benefitRecId,
boolean _byPayrollType,
PayrollType _payrollType,
boolean _byRetirementType,
PayrollRetirementType _retirementType,
HcmWorkerRecId _workerRecId])
Run On
ServerParameters
- _startDate
- Type: TransDate Extended Data Type
The start date of the date range.
- _endDate
- Type: TransDate Extended Data Type
The end date of the date range.
- _payStatementRecId
- Type: PayrollPayStatementRecId Extended Data Type
The PayrolLPayStatement record ID to filter on.
- _benefitRecId
- Type: HcmBenefitRecId Extended Data Type
The HcmBenefit record ID to filter on.
- _byPayrollType
- Type: boolean
A Boolean value that determines whether to include both deductions and contributions in the total query.
- _payrollType
- Type: PayrollType Enumeration
The PayrollType value to filter on if either deductions or contributions are calculated.
- _byRetirementType
- Type: boolean
A Boolean value that determines whether to include both retirement groupings in the total query.
- _retirementType
- Type: PayrollRetirementType Enumeration
The PayrollRetirementType value to filter on if a single retirement type is calculated.
- _workerRecId
- Type: HcmWorkerRecId Extended Data Type
The HcmWorker record ID to filter on.
Return Value
Type: Query ClassA Query object that will select and sum benefit lines, based on the input parameters.
Show: