-
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
Create SROC two-part tariff flagging endpoint for new charge versions #1239
Conversation
https://eaflood.atlassian.net/browse/WATER-4622 This is apart of the work for two-part tariff supplementary billing. A licence can be added to a two-part tariff supplementary bill run in 5 ways. Editing a return, adding a historic charge version, removing a licence from the annual two-part tariff bill run, recalculate a bill and if a licence is lapsed or revoked. Out of these 5 ways, 4 of them are in the legacy code base. To keep the new code for the supplementary billing within our system code base, we have decided to create a new endpoint that the legacy code can hit to calculate if the changed licence needs to be added to a supplementary bill run. This PR is setting up the endpoint.
Co-authored-by: Jason Claxton <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if there are any issues, questions or challenges to these suggestions. All are welcome!
app/services/licences/check-supplementary-billing-flag.service.js
Outdated
Show resolved
Hide resolved
app/services/licences/check-supplementary-billing-flag.service.js
Outdated
Show resolved
Hide resolved
DEFRA/water-abstraction-system#1239 During recent refactoring for the Supplementary billing flag process, the route was updated to better reflect the naming conventions in the repo. This PR is to update the routes when the service is called.
DEFRA/water-abstraction-system#1239 During recent refactoring for the Supplementary billing flag process, the route was updated to better reflect the naming conventions in the repo. This PR is to update the routes when the service is called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully just some minor tweaks plus the change we discussed.
test/services/licences/supplementary/determine-charge-version-years.service.test.js
Outdated
Show resolved
Hide resolved
test/services/licences/supplementary/process-billing-flag.service.test.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://eaflood.atlassian.net/browse/WATER-4622
https://eaflood.atlassian.net/browse/WATER-4588
This is a part of the work for two-part tariff supplementary billing. A licence can be added to a two-part tariff supplementary bill run in 5 ways. Editing a return, adding a historic charge version, removing a licence from the annual two-part tariff bill run, recalculating a bill and if a licence is lapsed or revoked.
Out of these 5 ways, 4 of them are in the legacy code base. To keep the new code for the supplementary billing within our system code base, we have decided to create a new endpoint that the legacy code can hit to calculate if the changed licence needs to be added to a supplementary bill run. This PR sets up the endpoint and flags a licence in need of a supplementary bill run when a historic charge version is added.