Skip to content

Commit

Permalink
[FIX] l10n_ar_account_tax_settlement: Use Date instead "payment date"…
Browse files Browse the repository at this point in the history
… for a payment
  • Loading branch information
nicomacr committed Dec 13, 2022
1 parent c56d5d2 commit 83cd21d
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
Expand Up @@ -1141,7 +1141,7 @@ def sicore_aplicado_files_values(self, move_lines):
content += '%016d' % int(re.sub('[^0-9]', '', move.l10n_latam_document_number))
#Importe del comprobante
codop = '1'
issue_date = payment.payment_date
issue_date = payment.date or payment.payment_group_id.payment_date
amount_tot = abs(payment.payment_group_id.payments_amount)
base_amount = payment.withholdable_base_amount

Expand Down Expand Up @@ -1250,7 +1250,7 @@ def drei_aplicado_files_values(self, move_lines):
content = ''
for line in move_lines.sorted(key=lambda r: (r.date, r.id)):
if line.payment_id:
date = line.payment_id.payment_date
date = line.payment_id.date or line.date
content += line.partner_id.ensure_vat()
content += line.partner_id.name.ljust(80)[:80]
content += '%010d' % int(line.name)
Expand All @@ -1274,7 +1274,7 @@ def misiones_files_values(self, move_lines):
payment = line.payment_id
if payment:
# Fecha
content += fields.Date.from_string(payment.payment_date).strftime('%d-%m-%Y') + ','
content += fields.Date.from_string(payment.date).strftime('%d-%m-%Y') + ','

# Constancia
content += payment.withholding_number[-8:] + ','
Expand Down

0 comments on commit 83cd21d

Please sign in to comment.