recomputeEmployeeAccrualsByIDNum() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Alternate Method
  9. Related Methods

Function

  • Recomputes an employee’s accruals from a selected starting date

Syntax

  • AeXMLBridge.recomputeEmployeeAccrualsByIDNum(IDNum, FromDate);

Parameters

  • String - employee ID
  • String - date (yyyy-mm-dd format)

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
string empID = "1234";                                                     
// using employee with ID 1234

string selectedDate = DateTime.Now.AddDays(-180).ToString("yyyy-MM-dd");
// set date to 180 prior to today

try
{
ws.recomputeEmployeeAccrualsByIDNum(empID, selectedDate);
}
catch(Exception ex)
{
MesageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
Dim empID As String = "1234"
' using employee with ID 1234

Dim selectedDate As String = DateTime.Now.AddDays(-180).ToString("yyyy-MM-dd")
' set date to 180 prior to today

Try
ws.recomputeEmployeeAccrualsByIDNum(empID, selectedDate)
Catch ex As Exception
MesageBox.Show(ex.Message)
End Try

Remarks

  • Accrual calculations take place from a defined starting date and continue up until the current date

Possible Errors

  • Unable to locate employee with identifier
  • yyyy-mm-dd is required [Date supplied in invalid format]

Alternate Method

recomputeEmployeeAccrualsByFilekey

adjustEmployeeBenefitBalanceByIDNum
employeeBenefitBalanceAsOfByIDNum
extractEmployeeBenefitActivityByIDNum
extractEmployeeBenefitBalancesAsOfUsingHyperQuery
getCorrectiveActionsSimple
getEmployeeBenefitBalancesAsOfByIDNum
removeEmployeeBenefitAdjustmentsByIDNum

Back to Top