HcmBenefit::resolveReferenceEarningStatHcmBenefit Method
Provides custom resolveReference logic for foreign keys to the HcmBenefit table that supports looking up currently for the selected HcmWorker, PayrollCategory and legal entity.
Syntax
client server public static Common resolveReferenceEarningStatHcmBenefit(
FormReferenceControl _formReferenceControl,
[utcdatetime _dateToFilter,
HcmWorkerRecId _workerRecId,
PayrollCategory _payrollCategory,
LegalEntityRecId _legalEntity])
Run On
Called
Parameters
- _formReferenceControl
Type: FormReferenceControl Class
The form control that is bound to the foreign key reference to the HcmBenefit table.
- _dateToFilter
Type: utcdatetime
The date to filter.
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The worker record Id.
- _payrollCategory
Type: PayrollCategory Enumeration
The payroll category that is associated with the benefit.
- _legalEntity
Type: LegalEntityRecId Extended Data Type
The legal entity record.
Return Value
Type: Common Table
A reference to a HcmBenefit record.
Remarks
A HcmBenefit record buffer that contains the record that the values in the FormReferenceControl resolves to.