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

Fix fetching returns for two part tariff #920

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

Beckyrose200
Copy link
Contributor

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

As part of the ongoing testing for the two-part tariff engine, it was found that there were too many returns matching a charge element. The returns were spread over two years (all within the financial year but starting and finishing outside). This wasn't a bug in the code but rather an A|C that wasn't fleshed out properly. The team don't want returns to be pulled in if the end date of the return is outside the financial year. This PR is to update the fetching query to adjust the start and end dates that the returns can be picked from.

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

As part of the ongoing testing for the two-part tariff engine it was found that there were too many returns matching to a charge element. The returns were spread over two years (all within the financial year but starting and finishing outside). This wasn't a bug in the code but rather an A|C that wasn't fleshed out properly. The team don't want returns to be pulled in if the end date of the return is outside the financial year. This PR is to update the fetching query to adjust the start and end dates that the returns can be picked from.
@Beckyrose200 Beckyrose200 added the enhancement New feature or request label Apr 18, 2024
@Beckyrose200 Beckyrose200 self-assigned this Apr 18, 2024
Co-authored-by: Jason Claxton <[email protected]>
@Beckyrose200 Beckyrose200 marked this pull request as ready for review April 18, 2024 13:25
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.

Just a couple of comments

@Beckyrose200 Beckyrose200 requested a review from Jozzey April 18, 2024 13:50
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.

@Beckyrose200 Beckyrose200 merged commit f48c5d3 into main Apr 18, 2024
6 checks passed
@Beckyrose200 Beckyrose200 deleted the fix-fetching-returns-for-two-part-tariff branch April 18, 2024 14:32
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