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

Fix remove bill licence supplementary flagging #2464

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Mar 19, 2024

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

We spotted that our new billing views had dropped the button that allows a user to remove a licence from a bill run (only applies to `READY`` bill runs and bills with more than one licence).

We put the button back in and even gave the confirmation page a refresh. But we're not in a position to migrate the actual work yet. So, our page like the old one pings the same legacy endpoint as water-abstraction-ui.

Our QA team being as conscientious as always double-checked all aspects, following up on the message that both the old and new pages display stating the licence will be flagged for the next supplementary bill run.

They have found it only flags it for the old (PRESROC) charge scheme.

We need to be looking at the scheme of the bill run we are removing the licence from and then set the appropriate supplementary billing flag on the licence.

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

We spotted that our new billing views had dropped the button that allows a user to remove a licence from a bill run (only applies to `READY`` bill runs and bills with more than one licence).

We put the button back in and even gave the confirmation page a refresh. But we're not in a position to migrate the actual work yet. So, our page like the old one pings the same legacy endpoint as [water-abstraction-ui](https://github.com/DEFRA/water-abstraction-ui).

Our QA team being as conscientious as always double-checked all aspects, following up on the message that both the old and new pages display stating the licence will be flagged for the next supplementary bill run.

Only they have found it sometimes doesn't, or only flags it for the old (PRESROC) charge scheme.

We need to be looking at the scheme of the bill run we are removing the licence from and then setting the appropriate supplementary billing flag on the licence.
@Cruikshanks Cruikshanks added the bug Something isn't working label Mar 19, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 19, 2024
It was calling the function but not passing in the scheme param. This means it kept using the default arg of `alcs`.

Fortunately we have the scheme to hand so can pass it in and let `flagForSupplementaryBilling()` do its stuff.
@Cruikshanks Cruikshanks marked this pull request as ready for review March 19, 2024 09:39
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 01102a6 into main Mar 19, 2024
4 checks passed
@Cruikshanks Cruikshanks deleted the fix-remove-licence-supplementary-flagging branch March 19, 2024 09:49
Cruikshanks added a commit to DEFRA/water-abstraction-system that referenced this pull request Mar 19, 2024
https://eaflood.atlassian.net/browse/WATER-4416

We'd recently spotted that the new billing views we'd developed had dropped a 'Remove licence' button. So, we used that opportunity to [Migrate confirm remove licence from bill run page](#828) and [added the button back in](#824).

But then our conscientious QA team started testing it and found it didn't do what it claimed to do. That was flag the removed licence for the next supplementary bill run. We display the same message on the confirm remove bill from bill run so now doubtful they tested that as well with the same result.

We've [fixed the remove licence issue](DEFRA/water-abstraction-service#2464). But whilst we fix the legacy code for remove bill run this is a great opportunity to also migrate the confirm remove bill from bill run page.
Cruikshanks added a commit to DEFRA/water-abstraction-system that referenced this pull request Mar 20, 2024
https://eaflood.atlassian.net/browse/WATER-4416

We'd recently spotted that the new billing views we'd developed had dropped a 'Remove licence' button. So, we used that opportunity to [Migrate confirm remove licence from bill run page](#828) and [added the button back in](#824).

But then our conscientious QA team started testing it and found it didn't do what it claimed to do. That was to flag the removed licence for the next supplementary bill run. We display the same message on the confirm remove bill from bill run so now doubtful they tested that as well with the same result.

We've [fixed the remove licence issue](DEFRA/water-abstraction-service#2464). But whilst we fix the legacy code for remove bill run this is a great opportunity to also migrate the confirm remove bill from bill run page. Not only is it one less thing in the legacy code but we can also update the view to be consistent with others we've done like

- [Migrate confirm remove licence from bill run page](#828)
- [Migrate view errored bill run page](#785)
- [Migrate view empty bill run page](#783)
- [Add cancel bill run page](#780)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants