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 amended billable returns banner two-part tariff review #962

Merged
merged 7 commits into from
May 1, 2024

Conversation

Beckyrose200
Copy link
Contributor

@Beckyrose200 Beckyrose200 commented May 1, 2024

During testing, it was noted that the amended billable returns banner broke during a previous PR (#942). It is currently always being displayed. This is because it displays the banner if the amended volume doesn't equal the source volume and since the 'calculated' column no longer exists in the db it therefore never equals each other.

Since the testing for this ticket, it has also been picked up that the banner should not be displayed permanently if the amended volume is changed. It should be a flash banner that should appear on the redirect from the POST amendBillableReturns page and if the user refreshes or navigates away from the page it should disappear. We have changed the other review banners to use yar session manager, so we will be using that for this one as well.

This PR is to fix the bug and change the banner to be a flash banner and not a persistent one.

During testing it was noted that the amended billable returns banner broke during a previous PR (#942). It is currently always being displayed. This is because it displays the banner if the amended volume doesn't equal the source volume and since the 'calculated' column no longer exists in the db it therefore never equals each other. This change is to fix the banner to display it only when there is a change to the amended amount.
@Beckyrose200 Beckyrose200 added the bug Something isn't working label May 1, 2024
@Beckyrose200 Beckyrose200 self-assigned this May 1, 2024
@Beckyrose200 Beckyrose200 marked this pull request as ready for review May 1, 2024 14:16
@Beckyrose200 Beckyrose200 merged commit feaeea4 into main May 1, 2024
6 checks passed
@Beckyrose200 Beckyrose200 deleted the fix-match-details-banner branch May 1, 2024 16:12
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