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-3906
https://eaflood.atlassian.net/browse/WATER-3921
For the SROC supplementary bill run process we intend to take things as far as having the batch, invoice, invoice licence and transaction records created in the DB and the Charging Module API, and the bill run generated.
Control will then be handed to the legacy service to complete the process.
src/modules/billing/jobs/create-charge.js
in the water-abstraction-service has been our guide for this. After generating the bill run in the charging module it queues up thesrc/modules/billing/jobs/refresh-totals.js
job.We've added a new endpoint to the water-abstraction-service that allows us to do the same. The first step is to add a new
LegacyRequestLib
following the same pattern asapp/lib/charging-module-request.lib.js
.As part of this change, we have to add a new env var to support talking to the legacy services. We also update our existing
app/services/health/info.service.js
to make use ofLegacyRequestLib
.