You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you check and verify as
when i create a update compensation on net pay for a specific employee.
It is throwing the following error when generating payslips:
Internal Server Error: /payroll/create-payslip
Traceback (most recent call last):
File "/home/ec2-user/project/horilla/horilla/decorators.py", line 234, in wrapped_view
func = view_func(request, *args, **kwargs)
File "/home/ec2-user/project/horilla/horilla/decorators.py", line 41, in _function
return function(request, *args, **kwargs)
File "/home/ec2-user/project/horilla/payroll/views/component_views.py", line 909, in create_payslip
calculate_employer_contribution(data)
File "/home/ec2-user/project/horilla/payroll/methods/methods.py", line 560, in calculate_employer_contribution
amount * object.employer_rate
TypeError: unsupported operand type(s) for*: 'NoneType' and 'float'
This is the data am getting in save method of Deduction form creation:
It looks like the based_on field is getting saved as None in the database, which is causing the TypeError in the calculate_employer_contribution function when trying to multiply it with employer_rate.
We will check and verify the issue, including the calculation of employer contributions for other tax types. We'll update you once we have a fix.
Can you check and verify as
when i create a update compensation on net pay for a specific employee.
It is throwing the following error when generating payslips:
This is the data am getting in save method of Deduction form creation:
As you can see the based on will be saved as None in the database, but now in calculate employee contribution funciton , its throwing that error.
Also i think employer_contribution for other type of taxes is not calculating correctly.
The text was updated successfully, but these errors were encountered: