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 dda2e37d3a
commit 05c42be7ba
2 changed files with 3 additions and 2 deletions

View File

@ -160,7 +160,8 @@ class RecievedTrytonInvoiceMapper(mapping.RecievedInvoiceMapper,
def deductible_amount(self, invoice): def deductible_amount(self, invoice):
val = Decimal(0) val = Decimal(0)
for tax in self.taxes(invoice): for tax in self.taxes(invoice):
val += tax.company_amount if tax.tax.deducible:
val += tax.company_amount
return val return val
tax_reagyp_rate = BaseTrytonInvoiceMapper.tax_rate tax_reagyp_rate = BaseTrytonInvoiceMapper.tax_rate

View File

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