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

Allocate returns volumes to charge elements #436

Merged
merged 13 commits into from
Oct 2, 2023
Merged

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Sep 27, 2023

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

This PR will take the returns that have been matched to charge elements and distribute their calculated volumes amongst the matched charge elements.

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

This PR will take the returns that have been matched to charge clements and distribute their calculated volumes amongst the matched charge elements.
@Jozzey Jozzey added the enhancement New feature or request label Sep 27, 2023
@Jozzey Jozzey self-assigned this Sep 27, 2023
@Jozzey
Copy link
Contributor Author

Jozzey commented Sep 29, 2023

SonarCloud is failing due to a lack of unit tests. It's been agreed that while we are figuring out the 2PT process we won't spend time on the unit tests as they will probably need to be completely re-written once the process is finalised and refactored.

@Jozzey Jozzey marked this pull request as ready for review September 29, 2023 11:38
@Jozzey Jozzey merged commit 2a78af2 into main Oct 2, 2023
5 of 6 checks passed
@Jozzey Jozzey deleted the allocate-returns-volumes branch October 2, 2023 08:54
Jozzey added a commit that referenced this pull request Oct 2, 2023
https://eaflood.atlassian.net/browse/WATER-4127

A issue has been spotted in the PR which deals with allocating the Returns volumes to the Charge Elements which was merged in #436

The issue is that if the return volume exactly matches the `authorisedAnnualQuantity` the volume isn't allocated to that Charge Elelment. This PR will fix that bug.
Jozzey added a commit that referenced this pull request Oct 3, 2023
https://eaflood.atlassian.net/browse/WATER-4127

In a previous PR #436 which dealt with allocating the Return volumes to Charge Elelemts. It was assumed that the `billableAnnualQuantity` data item could be used to hold the Return volumes allocated to a Charge Element. However, in a very few cases this could already contain data which will cause the Return volume allocation process to not work properly.

Therefore this PR will create a new data item on the Charge Element called `allocatedReturnVolume` that will be used to hold any Return volumes allocated to a particular Charge Element.
Jozzey added a commit that referenced this pull request Oct 3, 2023
https://eaflood.atlassian.net/browse/WATER-4127

In a previous PR #436 which dealt with allocating the Return volumes to Charge Elements. It was assumed that the `billableAnnualQuantity` data item could be used to hold the Return volumes allocated to a Charge Element. However, in very few cases, this could already contain data which will cause the Return volume allocation process to not work properly.

Therefore this PR will create a new data item on the Charge Element called `allocatedReturnVolume` that will be used to hold any Return volumes allocated to a particular Charge Element.
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