mirror of
https://gitlab.com/datalifeit/trytond-aeat_sii
synced 2023-12-13 20:30:37 +01:00
Fix bug when the tax is not deductible
This commit is contained in:
parent
dda2e37d3a
commit
05c42be7ba
2 changed files with 3 additions and 2 deletions
|
@ -160,6 +160,7 @@ 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):
|
||||||
|
if tax.tax.deducible:
|
||||||
val += tax.company_amount
|
val += tax.company_amount
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
|
|
@ -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 a new issue