Skip to content

Commit

Permalink
Add new TPT supplementary batch type
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Cruikshanks committed Feb 27, 2025
1 parent 534f9ac commit 7041fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/models/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const BATCH_ERROR_CODE = {
const BATCH_TYPE = {
annual: 'annual',
supplementary: 'supplementary',
twoPartTariff: 'two_part_tariff'
twoPartTariff: 'two_part_tariff',
tptSupplementary: 'two_part_supplementary'
}

const BATCH_SOURCE = {
Expand Down

0 comments on commit 7041fe2

Please sign in to comment.