PayrollPayStatementBenefitLine::canCreate Method
Determines whether it is safe to create a new PayrollPayStatementBenefitLine record on the current pay statement for the specified code.
Syntax
client server public static boolean canCreate(
HcmBenefitRecId _benefit,
PayrollPayStatementRecId _payStatement,
boolean _isEmployer)
Run On
Called
Parameters
- _benefit
Type: HcmBenefitRecId Extended Data Type
The benefit record ID for which to see whether benefit line records exist.
- _payStatement
Type: PayrollPayStatementRecId Extended Data Type
The PayrollPayStatement record ID to verify for existence.
- _isEmployer
Type: boolean
A Boolean value: true to look for a contribution; false to look for a deduction.
Return Value
Type: boolean
true if it is safe to create a new benefit line for the current pay statement for the specified benefit code; otherwise, false.
Remarks
This method is used to guarantee that, during a recalculation of a pay statement, any lines that were modified or removed by the user are not replaced by the recalculation process.