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

PAY - EJV - REFUND_REQUESTED transactions that can be stuck #17772

Closed
seeker25 opened this issue Sep 18, 2023 · 2 comments · Fixed by bcgov/sbc-pay#1321
Closed

PAY - EJV - REFUND_REQUESTED transactions that can be stuck #17772

seeker25 opened this issue Sep 18, 2023 · 2 comments · Fixed by bcgov/sbc-pay#1321
Assignees
Labels
Dev Tasks for developers Pay Ops Pay Work for Pay Team

Comments

@seeker25
Copy link
Collaborator

Investigate into transactions that are REFUND_REQUESTED for EJV that are stuck.

@seeker25 seeker25 self-assigned this Sep 18, 2023
@seeker25 seeker25 added Pay Work for Pay Team Dev Tasks for developers Pay Ops labels Oct 10, 2023
@Jxio Jxio assigned Jxio and unassigned seeker25 Oct 25, 2023
@Jxio
Copy link
Collaborator

Jxio commented Nov 3, 2023

SELECT i.paid, i.refund, i.disbursement_status_code
FROM invoices i 
WHERE i.payment_method_code = 'EJV'
  AND i.invoice_status_code = 'REFUND_REQUESTED'
  AND i.created_on < NOW() - INTERVAL '20 DAY';
  and i.paid != i.refund;

31 EJV invoices stuck at REFUND_REQUESTED, 30 of them paid = refund, but no disbursement status, so it was ignored by payment-jobs. 1 invoice shows paid = 0, but refund = 10

@seeker25 seeker25 self-assigned this Nov 7, 2023
@seeker25 seeker25 closed this as completed Nov 7, 2023
@seeker25
Copy link
Collaborator Author

seeker25 commented Nov 8, 2023

These invoices were from SBC_STAFF org, we need a code change to set the invoices to REFUNDED if they are billable = 'f'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Tasks for developers Pay Ops Pay Work for Pay Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants