Skip to content

Commit

Permalink
ejv_content fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio committed Mar 7, 2024
1 parent 0917ace commit 7de18ec
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions jobs/payment-jobs/tasks/ejv_partner_distribution_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,20 @@ def _create_ejv_file_for_partner(cls, batch_type: str): # pylint:disable=too-ma
description = disbursement_desc[:-len(refund_partial_number)] + refund_partial_number
description = f'{description[:100]:<100}'

ejv_content = cls.get_jv_line(batch_type, credit_distribution, description,
effective_date, flow_through, journal_name,
refund_partial.refund_amount, partial_refund_number, 'C')
ejv_content = '{}{}'.format(ejv_content, # pylint:disable=consider-using-f-string
cls.get_jv_line(batch_type, credit_distribution, description,
effective_date, flow_through, journal_name,
refund_partial.refund_amount,
partial_refund_number, 'D'))
partial_refund_number += 1
control_total += 1

# Add a line here for debit too
ejv_content = cls.get_jv_line(batch_type, debit_distribution, description,
effective_date, flow_through, journal_name,
refund_partial.refund_amount, partial_refund_number, 'D')
ejv_content = '{}{}'.format(ejv_content, # pylint:disable=consider-using-f-string
cls.get_jv_line(batch_type, debit_distribution, description,
effective_date, flow_through, journal_name,
refund_partial.refund_amount,
partial_refund_number, 'C'))
control_total += 1

# Update partial refund status
Expand Down

0 comments on commit 7de18ec

Please sign in to comment.