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):
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue