Fix bug when the tax is not deductible

This commit is contained in:
Bernat Brunet Torruella 2018-07-09 09:47:47 +02:00
parent e0824dc738
commit 135b4b7368
2 changed files with 3 additions and 2 deletions

View File

@ -176,7 +176,8 @@ class RecievedTrytonInvoiceMapper(mapping.RecievedInvoiceMapper,
val = Decimal(0)
for tax in self.taxes(invoice):
val += tax.company_amount
if tax.tax.deducible:
val += tax.company_amount
# On 4.X change the return for: return val
return val if val is None or not credit_note else -val

View File

@ -3,8 +3,8 @@ version=3.4.0
depends:
account_invoice
account_invoice_company_currency
extras_depend:
account_es
extras_depend:
account_es_pyme
sale
purchase