PayrollCalculatePayStatementEarnings::createPayStatementEarningLine Method [AX 2012]

Creates a single PayrollPayStatementEarningLine record against all the PayrollEarningStatementLine records that are passed in.

server protected static void createPayStatementEarningLine(
    PayrollPayStatement _payStatement, 
    List _earningLines, 
    List _sourceDocumentLines)

Run On

Server

Parameters

_payStatement
Type: PayrollPayStatement Table
The PayrollPayStatement record against which to create the new line.
_earningLines
Type: List Class
A List object that contains the record IDs of PayrollEarningStatementLine records.
_sourceDocumentLines
Type: List Class
A List object that contains the record IDs of corresponding SourceDocumentLine records.

The _sourceDocumentLines parameter should be nullNothingnullptrunita null reference (Nothing in Visual Basic) if no accounting should be performed.

Show: