minor fix

This commit is contained in:
Wilson Gomez 2023-10-03 10:07:10 -05:00
parent d4764194a0
commit 75e8cc788c
1 changed files with 2 additions and 0 deletions

View File

@ -688,6 +688,8 @@ class Payroll(metaclass=PoolMeta):
unit_value, tax_base = self._compute_line_tax(line, wage)
if unit_value > 0:
tax_base = Decimal(str(round(tax_base, 2)))
else:
tax_base = None
else:
continue
PayrollLine.write([line], {'unit_value': unit_value, 'tax_base': tax_base})