Skip to content

Commit

Permalink
[FIX] bug bajando archivos de impuesto
Browse files Browse the repository at this point in the history
Reportado por TANIA

closes #80

Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
  • Loading branch information
jobiols committed Jan 4, 2022
1 parent f66d158 commit 06e900b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l10n_ar_account_tax_settlement/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def iibb_aplicado_dgr_mendoza_files_values(self, move_lines):

# Campo 5: Fecha Ret./Perc. char(8)- Fecha de efectuada la retención / percepción (ddmmaaaa)
# Example "16052020"
content += fields.Date.from_string(payment.payment_date).strftime('%d%m%Y')
content += fields.Date.from_string(payment.date).strftime('%d%m%Y')

# Campo 6. Base Imponible char(15). Formato: 999999999999.99 (doce enteros, punto decimal y dos decimales,
# dejando espacios en blanco a izquierda para completar las 15 posiciones). Ejemplo: " 345.21"
Expand Down Expand Up @@ -1169,7 +1169,7 @@ def sicore_aplicado_files_values(self, move_lines):

# Fecha Emision Retencion [10] (dd/mm/yyyy)
content += fields.Date.from_string(
payment.payment_date).strftime('%d/%m/%Y')
payment.date).strftime('%d/%m/%Y')

# Codigo de Condicion [ 2]
content += '01' # TODO: ????
Expand All @@ -1185,7 +1185,7 @@ def sicore_aplicado_files_values(self, move_lines):

# Fecha Emision Boletin [10] (dd/mm/yyyy)
content += fields.Date.from_string(
payment.payment_date).strftime('%d/%m/%Y')
payment.date).strftime('%d/%m/%Y')

# Tipo Documento Retenido [ 2]
content += '%02d' % int(partner.l10n_latam_identification_type_id.l10n_ar_afip_code)
Expand Down

0 comments on commit 06e900b

Please sign in to comment.