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
e0824dc738
commit
135b4b7368
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue