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 view bill licence service #509

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Conversation

Cruikshanks
Copy link
Member

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

Related to WATER-4155 and the work to replace the legacy bill page with our own we're now starting to build the page it will link to; a view of the bill licence and all its transactions.

We've already made several other changes to support this. This change adds a new service that orchestrates fetching the information needed (Add new fetch bill licence service), passing it through to a presenter (Add View bill licence presenter) and returning the result.

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

Related to WATER-4155 and the work to replace the legacy bill page with our own we're now starting to build the page it will link to; a view of the bill licence and all its transactions.

We've already made several other changes to support this. This change adds a new service that orchestrates fetching the information needed ([Add new fetch bill licence service](#501)), passing it through to a presenter ([Add View bill licence presenter](#508)) and returning the result.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Nov 6, 2023
@Cruikshanks Cruikshanks self-assigned this Nov 6, 2023
Cruikshanks added a commit that referenced this pull request Nov 6, 2023
https://eaflood.atlassian.net/browse/WATER-4156

Related to WATER-4155 and the work to replace the legacy bill page with our own we're now able to add the page it will link to; a view of the bill licence and all its transactions.

We've already made several other changes to support this. With the addition of [Add view bill licence service](#509) we can make the final change; creating the endpoint and adding the view template.
@Cruikshanks Cruikshanks marked this pull request as ready for review November 6, 2023 22:57
@Cruikshanks Cruikshanks merged commit 67dfe46 into main Nov 6, 2023
6 checks passed
@Cruikshanks Cruikshanks deleted the add-view-bill-licence-service branch November 6, 2023 22:57
Cruikshanks added a commit that referenced this pull request Nov 6, 2023
https://eaflood.atlassian.net/browse/WATER-4156

Related to WATER-4155 and the work to replace the legacy bill page with our own we're now able to add the page it will link to; a view of the bill licence and all its transactions.

We've already made several other changes to support this. With the addition of [Add view bill licence service](#509) we can make the final change; creating the endpoint and adding the view template.
Cruikshanks added a commit that referenced this pull request Nov 6, 2023
https://eaflood.atlassian.net/browse/WATER-4156

Related to WATER-4155 and the work to replace the legacy bill page with our own we're now able to add the page it will link to; a view of the bill licence and all its transactions.

We've already made several other changes to support this. With the addition of [Add view bill licence service](#509) we can make the final change; creating the endpoint and adding the view template.

---

Note about splitting the template

We could have had 1 template and used `{% if %}` blocks to determine what to show based on whether we are dealing with a PRESROC or SROC bill licence. But the page is already complex enough cramming different content into different cells of a table without this extra headache.

So, in this case, we've opted for separate templates and left the controller to decide which view to use.
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.

1 participant