Fix bug when the tax is not deductible
This commit is contained in:
parent
dda2e37d3a
commit
05c42be7ba
|
@ -160,7 +160,8 @@ class RecievedTrytonInvoiceMapper(mapping.RecievedInvoiceMapper,
|
|||
def deductible_amount(self, invoice):
|
||||
val = Decimal(0)
|
||||
for tax in self.taxes(invoice):
|
||||
val += tax.company_amount
|
||||
if tax.tax.deducible:
|
||||
val += tax.company_amount
|
||||
return val
|
||||
|
||||
tax_reagyp_rate = BaseTrytonInvoiceMapper.tax_rate
|
||||
|
|
|
@ -3,8 +3,8 @@ version=4.7.0
|
|||
depends:
|
||||
account_invoice
|
||||
account_invoice_company_currency
|
||||
extras_depend:
|
||||
account_es
|
||||
extras_depend:
|
||||
account_es_pyme
|
||||
sale
|
||||
purchase
|
||||
|
|
Loading…
Reference in New Issue