Skip to content

Commit

Permalink
23191 - Only reverse receipt number, if it exists (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Sep 9, 2024
2 parents 51e5a54 + 9ba45e6 commit 4df33a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobs/payment-jobs/tasks/eft_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def _rollback_receipt_and_invoice(cls, cfs_account: CfsAccountModel,
f'not found for invoice id: {invoice.id} - {invoice.invoice_status_code}')
is_invoice_refund = invoice.invoice_status_code == InvoiceStatus.REFUND_REQUESTED.value
is_reversal = not is_invoice_refund
CFSService.reverse_rs_receipt_in_cfs(cfs_account, receipt_number, ReverseOperation.VOID.value)
if receipt_number:
CFSService.reverse_rs_receipt_in_cfs(cfs_account, receipt_number, ReverseOperation.VOID.value)
if is_invoice_refund:
cls._handle_invoice_refund(invoice, invoice_reference)
else:
Expand Down

0 comments on commit 4df33a6

Please sign in to comment.