commit
5ecd7318ea
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue