Env - Stage
Company - TSR Onboard
*Scenario 1] *
1] Suppose there is only one payroll schedule is present in Workterra - Bi Weekly (default)
2] Try to add employee with below parameter
"AssignDefaultPayrollSchedule":false,
"payrollSchedule":"Monthly"
3] Below error response is display, but employee is get added to WT:
{
"status": "Error",
"message": "Add Employee record failed",
"errorLevel": "Error",
"code": 500,
"description": "Error occured while assigning payroll schedule to employee, please contact system administrator."
}
4] When admin login to Workterra and click on respective employee name from search employee, server error is displaying:
*Scenario 2] *
1] Suppose there is only one payroll schedule is present in Workterra - Bi Weekly (default)
2] Try to add employee with below parameter: (do not pass AssignDefaultPayrollSchedule paramter)
"payrollSchedule":"Monthly"
3] Employee get added successfully, but the payroll schedule of this employee is Biweekly.
*Scenario 3] *
1] Suppose there is only one payroll schedule is present in Workterra - Bi Weekly (default)
2] Try to add update any existing employee with below details:
"AssignDefaultPayrollSchedule":false,
"payrollSchedule":"Monthly"
Actual Result:
Below error is displaying: (Refer screenshot - Scenario1)
{
"status": "InternalServerError",
"message": "Object reference not set to an instance of an object.",
"errorLevel": "Error",
"code": 500,
"description": "Error occured while processing HTTP request."
}
Cc: Saurabh Sablaka, Prasad Pise