PayrollAccrualProcess Class [AX 2012]
The PayrollAccrualProcess class provides functions for accrual and usage validation and calculation.
| Method | Description | |
|---|---|---|
| calculateAllHoursEligibleForAccrual | Calculates the number of hours that are eligible for an accrual balance for the pay statement lines that have an earning code for which the quantity unit is hours. |
| calculateNonUsageHoursEligibleForAccrual | Calculates the number of hours that are eligible for an accrual balance for the pay statement lines that have an earning code for which the quantity unit is hours and differs from the usage earning code. |
| calculatePayPeriodAccruedHours | Calculates the number of hours that are eligible for an accrual balance from the pay statement for an accrual enrollment. |
| calculatePayPeriodUsedHours | Calculates the usage balance from the pay statement for an accrual enrollment. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| createCarryforwardAdjustmentRecord | Creates a record in the PayrollWorkerAccrualAdjustment table while the plan year is reset. |
| createPayStatementAccrualBalanceRecord | Creates a record in the PayrollPayStatementAccrualBalance table. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getPayPeriod | Finds a record in the PayrollPayPeriod table. |
| getPlanYearUsageBalance | Determines the plan year usage balance to validate the earning statement line usage balance. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| getWorker | Finds a record in the HcmWorker table. |
| getWorkerMonthsOfEmployment | Calculates the number of months of employment for a worker as of pay period end date. |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| initializeAccrualBalances | Initializes the variable, with 0 (zero) holding the accrual balances for an accrual enrollment. |
| initializeDateRange | Initializes the start date and end date of the accrual plan year for the pay period. |
| isPlanYearResetRequired | Determines whether the accrual plan year reset is required to occur while accrual for the pay statement is processed. |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| processAccrual | Creates accrual and usage transactions for the specified pay statement, and resets the accrual plan year if a reset is required. |
| resetAccrualPlanYear | Resets the accrual plan year by updating the AccrualYearStartDate field of the PayrollWorkerEnrolledAccrual table and creating a carry-forward adjustment record. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validateUsage | Validates the usage according to usage rules when an attempt is made to release the specified earning statement line. |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
Community Additions
ADD
Show: