-
Notifications
You must be signed in to change notification settings - Fork 0
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 Licence Bills page #986
Conversation
https://eaflood.atlassian.net/browse/WATER-4316 The existing service handling view licence is slow because it loads all the data for the tabs in one render. Work has been done previously to refactor the summary page to load only the summary information. This change will introduce a bills controller, service and presenter to handle the view licence bills page. This will share the same view as the summary page and load the same 'common data' established in [previous work](#957).
const billsData = await FetchLicenceBillsService.go(licenceId, page) | ||
const pageData = ViewLicenceBillsPresenter.go(billsData.bills) | ||
|
||
const pagination = PaginatorPresenter.go(100, Number(page), `/system/licences/${licenceId}/bills`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confirm this works with a bigger license
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked and this does work when the numbers are fudged. But it would be better to test with a licence with more data.
https://eaflood.atlassian.net/browse/WATER-4316 In [Add View Licence Bills page](#986) we added support for displaying the bills linked to a licence in the view licence page's 'Bills' tab. Only we didn't spot that it should only be 'sent' bills. This change updates the relevant fetch service to ensure the bills we get back are only those with a status of 'sent'.
https://eaflood.atlassian.net/browse/WATER-4316 In [Add View Licence Bills page](#986) we added support for displaying the bills linked to a licence in the view licence page's 'Bills' tab. Only we didn't spot that it should only be 'sent' bills. This change updates the relevant fetch service to ensure the bills we get back are only those with a status of 'sent'.
https://eaflood.atlassian.net/browse/WATER-4316 In [Add View Licence Bills page](#986) we added support for displaying the bills linked to a licence in the view licence page's 'Bills' tab. Only we didn't spot that it should only be 'sent' bills. This change updates the relevant fetch service to ensure the bills we get back are only those with a status of 'sent'.
https://eaflood.atlassian.net/browse/WATER-4316
The existing service handling view licence is slow because it loads all the data for the tabs in one render. Work has been done previously to refactor the summary page to load only the summary information.
This change will introduce a bills controller, service and presenter to handle the view licence bills page.
This will share the same view as the summary page and load the same 'common data' established in previous work.