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 bill summaries presenter #542

Merged
merged 4 commits into from
Dec 16, 2023

Conversation

Cruikshanks
Copy link
Member

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

This presenter has been added to format the summarised data for each bill linked to a selected bill run. The data will be used in a new bill run page that will replace the existing one in the legacy service.

The page displays top-level details about the bill run (date created type, region etc) and then a summary for each bill linked to the bill run. This presenter handles the bill summary information returned by FetchBillRunService.

If a bill run contains bills linked to both water companies and other abstractors it will display them in 2 separate tables. If only one type of bill is present just a single table is shown. This is why the presenter takes the bills and groups them. The Nunjucks template will then decide whether to show just one table or both with captions based on how many groups this presenter returns.

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

This presenter has been added to format the summarised data for each bill linked to a selected bill run. The data will be used in a new bill run page that will replace the existing one in the legacy service.

The page displays top-level details about the bill run (date created type, region etc) and then a summary for each bill linked to the bill run. This presenter handles the bill summary information returned by `FetchBillRunService`.

If a bill run contains bills linked to both water companies and other abstractors it will display them in 2 separate tables. If only one type of bill is present just a single table is shown. This is why the presenter takes the bills and groups them. The Nunjucks template will then decide whether to show just one table or both with captions based on how many groups this presenter returns.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Nov 22, 2023
@Cruikshanks Cruikshanks self-assigned this Nov 22, 2023
@Cruikshanks Cruikshanks marked this pull request as ready for review November 22, 2023 23:20
Jozzey
Jozzey previously approved these changes Nov 24, 2023
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Cruikshanks Cruikshanks added the do not merge Used for spikes and experiments label Dec 5, 2023
@Cruikshanks
Copy link
Member Author

Don't merge until the refactoring work to use the new models is complete

@Cruikshanks Cruikshanks removed the do not merge Used for spikes and experiments label Dec 16, 2023
@Cruikshanks Cruikshanks merged commit 5858831 into main Dec 16, 2023
6 checks passed
@Cruikshanks Cruikshanks deleted the add-new-view-bill-summaries-presenter branch December 16, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants