Fix amended billable returns banner two-part tariff review #962
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.