Skip to content

Commit

Permalink
redondear cuotas de iva a 2 decimales ya que si no el sii devuelve er…
Browse files Browse the repository at this point in the history
…ror (#33)
  • Loading branch information
almumu authored and docker-odoo committed Jul 26, 2023
1 parent 1a08e46 commit c9f8a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_es_aeat_sii_pos_summary/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c9f8a32

Please sign in to comment.