Skip to content

Commit

Permalink
[fIX] l10n_es_aeat_sii: BaseImponibleACoste incorrecta en impuestos con
Browse files Browse the repository at this point in the history
'Base imponible de subsiguientes impuestos' activado

Cógido error del SII 1234: 'El campo CuotaRepercutida tiene un valor
incorrecto para los campos TipoImpositivo y BaseImponibleACoste suministrados'
  • Loading branch information
eantones committed May 11, 2020
1 parent 05c839a commit df24886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion l10n_es_aeat_sii/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ def _get_sii_in_taxes(self):
def _get_sii_base_cost(self):
self.ensure_one()
return sum(
self.invoice_line_ids.mapped('price_subtotal')
self.tax_line_ids.filtered(
lambda x: not x.tax_id.include_base_amount).mapped('base')
)

@api.multi
Expand Down

0 comments on commit df24886

Please sign in to comment.