Skip to content

Commit

Permalink
[FIX] l10n_ar_account_tax_settlement: percepciones Misiones. Importe …
Browse files Browse the repository at this point in the history
…de la operación

closes #265

Ticket: 65802
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
pablohmontenegro committed Sep 18, 2023
1 parent 2e75f16 commit 6dda0f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions l10n_ar_account_tax_settlement/models/account_journal.py
Expand Up @@ -1291,6 +1291,11 @@ def misiones_files_values(self, move_lines):
content += payment.partner_id.name.replace(',','')[:100] + ','

# Domicilio
if not payment.partner_id.street:
raise ValidationError(_(
'No hay dirección configurada en el partner '
'"%s" (id: %s)') % (
line.partner_id.name, line.partner_id.id))
content += payment.partner_id.street.replace(',','')[:200] + ','

# CUIT
Expand Down Expand Up @@ -1330,10 +1335,7 @@ def misiones_files_values(self, move_lines):
content += line.move_id.partner_id.ensure_vat() + ','

# Importe de la operación, consultar si l10n_latam_price_net es correcto
tax_group_id = line.tax_line_id.tax_group_id.id
for x in line.move_id.amount_by_group:
if x[-1] == tax_group_id:
content += str(x[2]) + ','
content += str(line.tax_base_amount) + ','

# Alícuota
alicuot_line = line.tax_line_id.get_partner_alicuot(
Expand Down

0 comments on commit 6dda0f1

Please sign in to comment.