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 Sep 6, 2023
1 parent 4f8bd43 commit 3930b04
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 3930b04

Please sign in to comment.