-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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. |
Cruikshanks
approved these changes
Oct 2, 2023
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.