fix typo
This commit is contained in:
parent
f3b4849e0c
commit
dba1965894
1 changed files with 2 additions and 2 deletions
4
mixin.py
4
mixin.py
|
@ -110,8 +110,8 @@ class EdocumentMixin(object):
|
|||
tax = line.taxes[0]
|
||||
date = line.invoice.accounting_date or line.invoice.invoice_date
|
||||
for child in tax.childs:
|
||||
start_date = tax.start_date or datetime.date.min
|
||||
end_date = tax.end_date or datetime.date.max
|
||||
start_date = child.start_date or datetime.date.min
|
||||
end_date = child.end_date or datetime.date.max
|
||||
if start_date <= date <= end_date:
|
||||
tax = child
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue