Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] Payslip won't compute om_hr_payroll #91

Open
Sarath-mcmwg opened this issue Dec 6, 2022 · 0 comments
Open

[14.0] Payslip won't compute om_hr_payroll #91

Sarath-mcmwg opened this issue Dec 6, 2022 · 0 comments

Comments

@Sarath-mcmwg
Copy link

Current Behavior:

  1. If an employee have unpaid leave then the compute sheet will execute and salary will calculate.
  2. If an employee have no unpaid leave then the salary won't compute and return the user error " Wrong python code for the salary rule Unpaid leave(ULV)"
  3. python code : result=-(contract.wage / worked_days.WORK100.number_of_days) * worked_days.Unpaid.number_of_days
  4. worked_days.Unpaid.number_of_days return nothing if there is no unpaid leave for the employee.

Solution

  1. Manually add line in employee work record for unpaid leave with zero day.(This will be a tedious task if there is more employees onboard.)
  2. Create a line automatically if no unpaid leaves were there for an employee.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant