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 single licence bill templates #514

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

Cruikshanks
Copy link
Member

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

In WATER-4155 and WATER-4156 we built 2 new pages for displaying a bill. WATER-4155 covered a new bill page that displayed details about the bill, the bill run it is in, and its billing account. It then listed all licences connected to the bill.

Each licence if selected would take you to a new bill-licence page (WATER-4156 ) which displays the transactions for that licence in detail. This fixed the issue (WATER-4070 ) with the legacy code being unable to display licences with large (100s) numbers of licences.

But what if a bill has just 1 licence? In this case, the team agreed that showing a table for 1 licence and requiring a user to click through for the details was superfluous.

So, WATER-4132 is about building a page for that scenario; a bill with just 1 licence. In this change, we add the new templates needed to do this along with changes to the controller and ViewBillService to determine which template to show.

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

In WATER-4155 and WATER-4156 we built 2 new pages for displaying a bill. WATER-4155 covered a new bill page that displayed details about the bill, the bill run it is in, and its billing account. It then listed all licences connected to the bill.

Each licence if selected would take you to a new bill-licence page (WATER-4156 ) which displays the transactions for that licence in detail. This fixed the issue (WATER-4070 ) with the legacy code being unable to display licences with large (100s) numbers of licences.

But what if a bill has just 1 licence? In this case, the team agreed to showing a table for 1 licence and requiring a user to click through for the details was superfluous.

So, WATER-4132 is about building a page for that scenario; a bill with just 1 licence. In this change, we add the new templates needed to do this along with changes to the controller and ViewBillService to determine which template to show.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Nov 10, 2023
@Cruikshanks Cruikshanks self-assigned this Nov 10, 2023
If we extended the way of testing the service we were currently using we'd need many hundreds of lines of fake data.

We have extensive tests of the presenters and fetch services already so this seemed unnecessary. So, instead we opted to switch to the approach used in test/services/bill-licences/view-bill-licence.service.test.js.
@Cruikshanks Cruikshanks marked this pull request as ready for review November 10, 2023 19:00
@Cruikshanks Cruikshanks merged commit 1fef820 into main Nov 10, 2023
6 checks passed
@Cruikshanks Cruikshanks deleted the add-new-single-licence-bill-page branch November 10, 2023 19:00
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