Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

25571 - Send queue message for reversal #1883

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Conversation

seeker25
Copy link
Collaborator

Issue #:
bcgov/entity#25571

Description of changes:
Send queue message for reversal

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

@seeker25
Copy link
Collaborator Author

seeker25 commented Feb 12, 2025

Requires unit tests before merging

@seeker25 seeker25 marked this pull request as ready for review February 12, 2025 23:44
@@ -449,3 +450,4 @@ def _handle_invoice_refund(cls, invoice: InvoiceModel, invoice_reference: Invoic
invoice.refund_date = datetime.now(tz=timezone.utc)
invoice.refund = invoice.total
invoice.flush()
EftService().release_payment_or_reversal(invoice, TransactionStatus.REVERSED.value)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need something similar to pay-queue

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also do we send a reversal when we put an EFT invoice back to APPROVED? I think so

@@ -156,7 +159,19 @@ def _process_ejv_feedback(group_batches) -> bool: # pylint:disable=too-many-loc
elif is_jv_detail:
has_errors = _process_jv_details_feedback(ejv_file, has_errors, line, receipt_number)

# return invoices that were set to refunded 4 function calls deep.
refund_invoices = [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps could hit unintended refunds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant