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 Multi-licence bill presenter #496

Merged
merged 6 commits into from
Nov 3, 2023

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Nov 2, 2023

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

We are building our first proper page which will replace the bill summary page the water-abstraction-ui currently provides. Rather than try to show all licences and all their transactions for a bill on one page we'll instead list the licences. Users can then see the transaction details by selecting a licence.

We've already made several other changes to support this. This change adds a new presenter which takes details of the bill summaries for the multiple licences linked to it and formats them ready for use in a new view bill page.


We also spotted that we had missed a key field in our FetchBillingAccountService so rectified that in this change.

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

We are building our first proper page which will replace the bill summary page the [water-abstraction-ui](https://github.com/DEFRA/water-abstraction-ui) currently provides. Rather than try to show all licences _and_ all their transactions for a bill on one page we'll instead list the licences. Users can then see the transaction details by selecting a licence.

We've already made several other changes to support this. This change adds a new presenter which takes details of the bill summaries for the multiple licences linked to it and formats them ready for use in a new view bill page.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Nov 2, 2023
@Cruikshanks Cruikshanks self-assigned this Nov 2, 2023
Dropped in because we realised we were missing grabbing the salutation for the contact. But then also spotted that the columns in our selects were not alphabetical (we still keep ID as the first though).
Cruikshanks added a commit that referenced this pull request Nov 3, 2023
https://eaflood.atlassian.net/browse/WATER-4155

We are building our first proper page which will replace the bill summary page the [water-abstraction-ui](https://github.com/DEFRA/water-abstraction-ui) currently provides. Rather than try to show all licences _and_ all their transactions for a bill on one page we'll instead list the licences. Users can then see the transaction details by selecting a licence.

We've already made several other changes to support this. This change adds a new service that orchestrates fetching the information needed (see [Add new fetch billing account service](#493) and [Add new fetch bill service](#495)), passing it through to a presenter ([Add new Multi-licence bill presenter](#496)) and returning the result.
@Cruikshanks Cruikshanks marked this pull request as ready for review November 3, 2023 15:08
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.

Just the 1 typo

test/presenters/bills/multi-licence-bill.presenter.test.js Outdated Show resolved Hide resolved
Co-authored-by: Jason Claxton <[email protected]>
@Cruikshanks Cruikshanks requested a review from Jozzey November 3, 2023 15:11
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 merged commit 2a86d45 into main Nov 3, 2023
6 checks passed
@Cruikshanks Cruikshanks deleted the add-multi-licence-bill-presenter branch November 3, 2023 15:25
Cruikshanks added a commit that referenced this pull request Nov 3, 2023
https://eaflood.atlassian.net/browse/WATER-4155

We are building our first proper page which will replace the bill summary page the [water-abstraction-ui](https://github.com/DEFRA/water-abstraction-ui) currently provides. Rather than try to show all licences _and_ all their transactions for a bill on one page we'll instead list the licences. Users can then see the transaction details by selecting a licence.

We've already made several other changes to support this. This change adds a new service that orchestrates fetching the information needed (see [Add new fetch billing account service](#493) and [Add new fetch bill service](#495)), passing it through to a presenter ([Add new Multi-licence bill presenter](#496)) and returning the result.
Cruikshanks added a commit that referenced this pull request Nov 3, 2023
https://eaflood.atlassian.net/browse/WATER-4155

We are building our first proper page which will replace the bill summary page the [water-abstraction-ui](https://github.com/DEFRA/water-abstraction-ui) currently provides. Rather than try to show all licences _and_ all their transactions for a bill on one page we'll instead list the licences. Users can then see the transaction details by selecting a licence.

We've already made several other changes to support this. This change adds a new service that orchestrates fetching the information needed (see [Add new fetch billing account service](#493) and [Add new fetch bill service](#495)), passing it through to a presenter ([Add new Multi-licence bill presenter](#496)) and returning the result.
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