PayrollCalculatePayStatementEarnings::insertPayStatementEarningLineWithDistrib Method [AX 2012]

Inserts a PayrollPayStatementEarningLine record, and creates the corresponding accounting and project distribution lines from the related PayrollPayStatementEarningLine record.

server public static void insertPayStatementEarningLineWithDistrib(
    PayrollPayStatementRecId _payStatementRecId, 
    PayrollPayStatementEarningLine _payrollPayStatementEarningLine, 
    List _earningLines, 
    List _sourceDocumentLines, 
   [boolean _isFringeBenefit])

Run On

Server

Parameters

_payStatementRecId
Type: PayrollPayStatementRecId Extended Data Type
The record ID of the PayrollPayStatement record to associate the PayrollPayStatementEarningLine line with.
_payrollPayStatementEarningLine
Type: PayrollPayStatementEarningLine Table
The PayrollPayStatementEarningLine buffer to insert into the database.
_earningLines
Type: List Class
A List object that contains the record IDs of earning statement lines that will be linked to the generated pay statement earning line.
_sourceDocumentLines
Type: List Class
A List object that contains the record IDs of the source document lines for the earning statement lines against which the distributions will be created.
_isFringeBenefit
Type: boolean
A value that indicates that the PayrollPayStatementEarningLine buffer represents a fringe benefit.
Show: