Files
odoo_source/addons/l10n_es_edi_sii
Josse Colpaert a897880a1d [FIX] l10n_es_edi_sii: ImporteTotal and intra-community + tests
When a line with a factor_percent of -100 is applied in the tax,
it should be subtracted from the ImporteTotal.

This way, we might think that the total of the invoice should do,
but we need the amount before application of the withholdings.
And in the case of DUA it should be the sum of base and tax.

Doing this, we realized that we do not have any tests for
vendor bills and their refunds for the intra-community case, so
we added one for vendor bill and one for vendor refund.  (there
is no -100 line for sale)

In the meantime, we added docstrings on the existing tests
and realized that the sale of intra-community services, it should
be no sujeto por reglas de localizacion instead of sujeto.
(because as well with the fiscal position, the delivery address counts)

We also saw that for intra-community, the clave regimen depended
on the tags on the amls but the refund repartition lines  were not mapped on the
tax report line with Intra-community but in a separate refunds section
(mod303), so we fixed by checking all tags on the tax from all the
repartition lines.

task 3603788

closes odoo/odoo#143204

Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-12-15 10:09:30 +00:00
..
…
…