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

Add new TPT supplementary batch type #2673

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

Cruikshanks
Copy link
Member

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

Part of the work to support two-part tariff bill runs

We are working on adding support for two-part tariff supplementary bill runs to the service. We've spiked the logic to understand how we can do this, but when doing it was being flagged as an error.

No errors were thrown within water-abstraction-system, so we looked at this project. That's when we spotted, after triggering src/modules/billing/jobs/refresh-totals.js, an error was being thrown. This was because of the previous team's decision to validate all data both to and from the DB, and it not knowing about the new two_part_supplementary batch type.

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

> Part of the work to support two-part tariff bill runs

We are working on adding support for two-part tariff supplementary bill runs to the service. We've [spiked the logic](DEFRA/water-abstraction-system#1412) to understand how we can do this, but when doing it was being flagged as an error.

No errors were thrown within [water-abstraction-system](https://github.com/DEFRA/water-abstraction-system), so we took a look at this project. That's when we spotted, after triggering `src/modules/billing/jobs/refresh-totals.js` an error was being thrown. This was because of the previous teams decision to validate all data both to and from the DB, and it not knowing about the new `two_part_supplementary` batch type.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Feb 27, 2025
@Cruikshanks Cruikshanks self-assigned this Feb 27, 2025
@Cruikshanks Cruikshanks marked this pull request as ready for review February 27, 2025 23:01
@Cruikshanks Cruikshanks merged commit ce1277f into main Feb 27, 2025
4 checks passed
@Cruikshanks Cruikshanks deleted the allow-tpt-supplementary-refresh branch February 27, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant