Dovico.TrackITAPI.CEmployee.AdjustAccrual(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Adjusts one or more accruals for one employee based on xml in the format adjustaccrual.xsd
Parameter List:
sXml - string - adjustment information for the accrual in adjustaccrual.xsd format
siState - CStateInfo - state information needed to process a transaction
Returns
A string of xml containing the new accrual results in the same format as time and attendance accrual information from the GetInfo function.
Example:
// build up xml to adjust the employees accrual to task 108
// from January 1, 2000 with a starting balance of 5 hours
string sXml = "<AdjustAccrual:ADJUSTACCRUALS xmlns:AdjustAccrual=\"http://www.dovico.com/schemas/adjustaccrual.xsd\">";
sXml += "<ADJUSTACCRUAL EMPLOYEE=\"99\" TASK=\"108\" START=\"2000-01-01T00:00:00\" ";
sXml += "ADJUSTMENT=\"5\"/></AdjustAccrual:ADJUSTACCRUALS>";
// call the EmployeeChangeAccrual method
wsapi.MethodInvoke("EmployeeAdjustAccrual", sXml, stToken);