PayrollCalculatePayStatementBenefits.initializeForPayment Method [AX 2012]

Initializes the class in preparation for processing of the benefits that are related to the PayrollPayStatement table record.

public void initializeForPayment(
    PayrollPayStatement _payStatement, 
    utcdatetime _companyPayPeriodEndDate, 
    AccountingDistributionTemplateRecId _distributionTemplatePositiveRecId, 
    AccountingDistributionTemplateRecId _distributionTemplateNegativeRecId, 
    Map _templatePositiveRecIdMap, 
    Map _templateNegativeRecIdMap)

Run On

Server

Parameters

_payStatement
Type: PayrollPayStatement Table
The pay statement for which to calculate benefits.
_companyPayPeriodEndDate
Type: utcdatetime
The payment date that is used by the process.
_distributionTemplatePositiveRecId
Type: AccountingDistributionTemplateRecId Extended Data Type
The distribution for positive lines to base the accounting distribution on.
_distributionTemplateNegativeRecId
Type: AccountingDistributionTemplateRecId Extended Data Type
The distribution for negative lines to base the accounting distribution on.
_templatePositiveRecIdMap
Type: Map Class
The project distribution information for positive lines to use to create the project accounting distribution.
_templateNegativeRecIdMap
Type: Map Class
The project distribution information for negative lines to use to create the project accounting distribution.

This method is called for every iteration through the main processing loop in the calculateBenenefits method.

Community Additions

ADD
Show: