-
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
Connect 2PT bill run request to match & allocate engine #705
Conversation
https://eaflood.atlassian.net/browse/WATER-4343 At this point the the SROC 2PT bilI run is created with a status of `QUEUED` and then … nothing. We need to complete the final step, after creating the bill run water-abstraction-system now needs to `PROCESS` the bill run, triggering the new match & allocate engine, and updating the bill run status to `REVIEW` when it's complete. It also needs to handle marking the bill run as `ERRORED` should one be thrown, or `EMPTY` should there be no licences to bill.
This service was built as part of the supplementary billing engine but can be reused for all bill run types
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.
I know it feels like a bit of a rewrite. But I'm rewriting the code @Cruikshanks wrote last year, not your code!
app/services/bill-runs/two-part-tariff/process-two-part-tariff-returns.service.js
Outdated
Show resolved
Hide resolved
app/services/bill-runs/two-part-tariff/process-two-part-tariff-returns.service.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Alan Cruikshanks <[email protected]>
Co-authored-by: Alan Cruikshanks <[email protected]>
Sonarcloud is complaining about the length of the If we do any further refactoring of this function I think it will make it less clear what it is doing so I am going to override the SonarCloud issue for that particular service. |
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-4343
At this point the the SROC 2PT bilI run is created with a status of
QUEUED
and then … nothing.We need to complete the final step after creating the bill run.
water-abstraction-system
now needs toPROCESS
the bill run, triggering the new match & allocate engine, and updating the bill run status toREVIEW
when it's complete. It also needs to handle marking the bill run asERRORED
should one be thrown, orEMPTY
should there be no licences to bill.