Try running quick pay for an employee with an effective date in the past. The quick-pay results in error even though there is no payroll was run for this employee. Let situation be evaluated with a simple example.
On 27th Apr 2010, we create following objects as of 01-Jan-2000:
- Create two recurring elements called test_salary and test_hra. The input values for test_salary are Pay Value and Basic Salary. Similarly for test_hra, Pay Value and hra_pct are the input values
- Create a salary basis test_salary_basis including test_salary as its element
- Write a formula test_formula which reads basic salary of test_salary and hra_pct of test_hra and computes the total salary which is equal to (monthly_salary + monthly_salary*hra_pct/100)
- Attach this formula to test_salary and return the total_salary to Pay Value of test_salary using formula results form
- Link both the element to a payroll test_payroll
- Create a new employee 'Mahindrasingh Dhoni', create address and attach the test_salary_basis to his assignment. Add test_payroll to his payroll
- Create a new salary for this employee effective from 01-Jan-2000. say $10000 basic per month
- From Element entries form, add test_hra element to this employee
- Run the quick pay for this employee as of 31-jan-2000
Above process typically results in error. The above process works perfectly when the same steps are repeated for effective date of today and for future periods whereas it does not work backwards even though we have not run any payroll for this employee later than 31-Jan-2000
Inference:
It is best to do all setup works in the past and start running the payroll from current date.
No comments:
Post a Comment