recomputeEmployeeAccrualsByFilekey() Method

Table of Contents

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

Function

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

Syntax

  • AeXMLBridge.recomputeEmployeeAccrualsByFilekey(Filekey, FromDate);

Parameters

  • Integer- employee filekey
  • 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
int filekey = 1234;                                                
// using employee with filekey 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 filekey As Integer = 1234
' using employee with filekey 1234

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

Try
ws.recomputeEmployeeAccrualsByFilekey(filekey, 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 filekey
  • yyyy-mm-dd is required [Date supplied in invalid format]

Preferred Method

recomputeEmployeeAccrualsByIDNum

adjustEmployeeBenefitBalanceByIDNum
employeeBenefitBalanceAsOfByIDNum
extractEmployeeBenefitActivityByIDNum
extractEmployeeBenefitBalancesAsOfUsingHyperQuery
getCorrectiveActionsSimple
getEmployeeBenefitBalancesAsOfByIDNum
removeEmployeeBenefitAdjustmentsByIDNum

Back to Top