PayrollCalculatePayStatementEarnings::createPayStatementEarningLines Method [AX 2012]

Generates the PayrollEarningStatementLine records for the PayrollPayStatement record and the positions that are passed.

server public static PayrollStatementAccountingCurrencyAmount createPayStatementEarningLines(
    PayrollPayStatement _payStatement, 
    List _positions, 
   [boolean _doAccounting])

Run On

Server

Parameters

_payStatement
Type: PayrollPayStatement Table
The PayrollPayStatement record that is the source document header record for the generated PayrollEarningStatementLine records.
_positions
Type: List Class
A List object that contains the record IDs of the positions.
_doAccounting
Type: boolean

Return Value

Type: PayrollStatementAccountingCurrencyAmount Extended Data Type
The total amount of all the generated lines.
Show: