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

Implement abstraction period query using Objection #66

Merged
merged 17 commits into from
Dec 23, 2022

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Dec 19, 2022

https://eaflood.atlassian.net/browse/WATER-3862

We want to extract data on relevant charge versions, their references and abstraction periods from the DB. We’ll then use this to determine what extractions periods apply for a given charge version and billing period.

The first step is getting the data out of the DB. We need to implement that query using our ORM Objection.

https://eaflood.atlassian.net/browse/WATER-3862

We want to extract data on relevant charge versions, their references and abstraction periods from the DB. We’ll then use this to determine what extractions periods apply for a given charge version and billing period.

The first step is getting the data out of the DB. We need to implement that query using our ORM Objection.
@Jozzey Jozzey added the enhancement New feature or request label Dec 19, 2022
@Jozzey Jozzey self-assigned this Dec 19, 2022
@Jozzey Jozzey marked this pull request as ready for review December 23, 2022 11:15
@Jozzey Jozzey requested a review from Cruikshanks December 23, 2022 11:15
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

@Jozzey Jozzey merged commit 71b7388 into main Dec 23, 2022
@Jozzey Jozzey deleted the implement-abs-period-query-using-objection branch December 23, 2022 11:18
Cruikshanks added a commit that referenced this pull request Jan 10, 2023
https://eaflood.atlassian.net/browse/WATER-3834

In [Implement abstraction period query using Objection](#66) we amended the query used in `test/services/supplementary-billing/fetch-charge-versions.service.test.js` to include abstraction period information for each charge version candidate.

We're aiming to get to a 'billable days' value but the next step is determining for each abstraction period, is it relevant to the current billing period, and if so, how much of it.

This change implements a service which can be used to answer both those questions.
Jozzey pushed a commit that referenced this pull request Jan 19, 2023
https://eaflood.atlassian.net/browse/WATER-3834

In [Implement abstraction period query using Objection](#66) we amended the query used in `test/services/supplementary-billing/fetch-charge-versions.service.test.js` to include abstraction period information for each charge version candidate.

We're aiming to get to a 'billable days' value but the next step is determining for each abstraction period whether it is relevant to the current billing period, and if so, how much of it.

This change implements a service which can be used to answer both those questions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants