Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether it is safe to create a new PayrollPayStatementEarningLine record on the current pay statement for the specified code.
Syntax
client server public static boolean canCreate(PayrollEarningCodeRecId _earningCode, PayrollPayStatementRecId _payStatement)
Run On
Called
Parameters
- _earningCode
Type: PayrollEarningCodeRecId Extended Data Type
The earning code record ID for which to see whether earning line records exist.
- _payStatement
Type: PayrollPayStatementRecId Extended Data Type
The PayrollPayStatement record ID to verify for existence.
Return Value
Type: boolean
true if it is safe to create a new earning line for the current pay statement for the specified earning 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.