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

Amend the supplementary charge version query #41

Merged
merged 9 commits into from
Dec 7, 2022

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Dec 5, 2022

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

The query as we have it is too simplistic. We need to review all charge versions within a given financial year to accurately calculate the bill run. We can't just look at the 'current' charge version.

So, this change updates the query to consider the start date (effective date) for the charge versions linked to a licence in conjunction with the billing period.

** Note

We're still working on our understanding of what is required when generating a supplementary bill run. At the moment the functionality is more about confirming we're selecting the right things rather than getting on with generating a bill run.

So, what we have will not be the finished version.

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

The query as we have it is to simplistic. We need to review all charge versions within a given financial year to accurately calculate the bill run. We can't just look at the 'current' charge version.

So, this change updates the query to consider the creation and effective dates for the charge versions linked to a licence.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Dec 5, 2022
@Cruikshanks Cruikshanks self-assigned this Dec 5, 2022
Start date becomes a consideration in our query so we need to add it to the table.
We now pass through the billing period in order to use it in our query.

We've not yet updated the tests (other than to ensure we pass through a billing period) in order to highlight as expected they fail.
@Cruikshanks Cruikshanks marked this pull request as ready for review December 6, 2022 13:20
Jozzey
Jozzey previously approved these changes Dec 6, 2022
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

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

Without the context some of the changes look 'odd'! So, we've added some comments to help make sense of things.
Now it's a critical factor in our query we should be outputting the start date to make it easier to confirm the results are correct.
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

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

@Cruikshanks Cruikshanks merged commit fc93a7d into main Dec 7, 2022
@Cruikshanks Cruikshanks deleted the amend-charge-version-query branch December 7, 2022 12:05
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