Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Oct 11, 2024
1 parent 0605cfe commit 859e5b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions pay-api/src/pay_api/services/eft_refund.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from pay_api.services.auth import get_emails_with_keycloak_role
from pay_api.services.eft_short_name_historical import EFTShortnameHistorical as EFTHistoryService
from pay_api.services.email_service import ShortNameRefundEmailContent, send_email
from pay_api.services.partner_disbursements import PartnerDisbursements
from pay_api.utils.enums import (
EFTCreditInvoiceStatus,
EFTHistoricalTypes,
Expand Down Expand Up @@ -96,8 +95,6 @@ def handle_invoice_refund(
cils: List[EFTCreditInvoiceLinkModel],
) -> InvoiceStatus:
"""Create EFT Short name funds received historical record."""
PartnerDisbursements.handle_reversal(invoice)

# 2. No EFT Credit Link - Job needs to reverse invoice in CFS
# (Invoice needs to be reversed, receipt doesn't exist.)
if not cils:
Expand Down
1 change: 1 addition & 0 deletions pay-api/src/pay_api/services/eft_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def process_cfs_refund(
refund_partial: List[RefundPartialLine],
): # pylint:disable=unused-argument
"""Process refund in CFS."""
PartnerDisbursements.handle_reversal(invoice)
cils = EFTCreditInvoiceLinkModel.find_by_invoice_id(invoice.id)
# 1. Possible to have no CILs and no invoice_reference, nothing to reverse.
if (
Expand Down

0 comments on commit 859e5b7

Please sign in to comment.