Merge pull request #4502 from expsa/samir-aladawi-fix-insurance-payslip-computation

[FIX] exp_payroll_custom
This commit is contained in:
SamirLADOUI-sa 2025-09-01 16:19:08 +01:00 committed by GitHub
commit d763f4301b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class SalaryRuleInput(models.Model):
def compute_totals(self):
for item in self:
item.total_allowances, item.total_deductions = 0.0, 0.0
item.total_allowances = item.total_deductions = item.total_loans = 0.0
for line in item.allowance_ids:
allow_tot = line.total
item.total_allowances += allow_tot