From c9f8a3249c66e57f5897e4aaf8786e255bdcea87 Mon Sep 17 00:00:00 2001 From: almumu Date: Wed, 7 Jun 2023 10:54:18 +0200 Subject: [PATCH] redondear cuotas de iva a 2 decimales ya que si no el sii devuelve error (#33) --- l10n_es_aeat_sii_pos_summary/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_es_aeat_sii_pos_summary/models/account_move.py b/l10n_es_aeat_sii_pos_summary/models/account_move.py index 496fa204711..6e054029a00 100644 --- a/l10n_es_aeat_sii_pos_summary/models/account_move.py +++ b/l10n_es_aeat_sii_pos_summary/models/account_move.py @@ -39,5 +39,5 @@ def _get_sii_tax_dict(self, tax_line, tax_lines): self.ensure_one() tax_dict = super(AccountMove, self)._get_sii_tax_dict(tax_line, tax_lines) if self._context.get("from_pos"): - tax_dict["CuotaRepercutida"] = tax_dict.pop("CuotaSoportada") + tax_dict["CuotaRepercutida"] = round(tax_dict.pop("CuotaSoportada"), 2) return tax_dict