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 - Modify Notebooks to send over payment information for eWills #18758

Closed
seeker25 opened this issue Nov 24, 2023 · 2 comments
Closed

PAY - Modify Notebooks to send over payment information for eWills #18758

seeker25 opened this issue Nov 24, 2023 · 2 comments
Assignees
Labels
Pay Ops Pay Work for Pay Team

Comments

@seeker25
Copy link
Collaborator

seeker25 commented Nov 24, 2023

Steven Chen has created these for us:

https://github.com/bcgov/sbc-pay/blob/main/jobs/notebook-report/daily/reconciliation_details.ipynb
https://github.com/bcgov/sbc-pay/blob/main/jobs/notebook-report/monthly/reconciliation_summary.ipynb

Duane has requested we should include the payment line items description, plus the counts of each Ewills product on a monthly basis.

We also need an adhoc run to grab the existing invoices + payment line items + descriptions + counts by month to cover the past months.

Example query:

SELECT count(*) as transaction_count, sum(i.total - i.service_fees) as subtotal, sum(i.service_fees) as service_fees, sum(i.total) as total, (payment_date)::date, description, payment_method_code, corp_type_code
FROM invoices i join payment_line_items pli on i.id = pli.invoice_id
WHERE corp_type_code = 'VS'
AND invoice_status_code = 'PAID'
AND payment_method_code in ('PAD','EJV', 'DIRECT_PAY')
AND date(payment_date) > date(current_date - 1 - interval '1 months')
AND date(payment_date) <= date(current_date - 1)
GROUP BY (payment_date)::date, payment_method_code, corp_type_code, description
order by payment_date, description, payment_method_code;

Should probably include DRAWDOWN and filter by disbursement date (note DRAWDOWN isnt disbursed) -^

This runs off of a cronjob in Openshift in the pay namespace.

@seeker25 seeker25 added the Pay Work for Pay Team label Nov 24, 2023
@seeker25
Copy link
Collaborator Author

Hey team! Please add your planning poker estimate with Zenhub @Jxio @ochiu @rodrigo-barraza

@ochiu
Copy link
Collaborator

ochiu commented Dec 11, 2023

Additional time spent, troubleshooting deployment issues and resolving outdated configuration

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

No branches or pull requests

2 participants