-
Notifications
You must be signed in to change notification settings - Fork 40
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
base: main
Are you sure you want to change the base?
Conversation
Requires unit tests before merging |
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 = [ |
There was a problem hiding this comment.
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
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).