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 bill licence supp source decimal in wrong place #714

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Feb 7, 2024

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

Back again! (see Fix bill licence charge ref decimal in wrong place)

The Billing & Data team have also spotted that the value shown against a supported source in the /bill-licences view has the decimal in the wrong place.

Both the charge reference charge (baseline charge) and Supported source charge are extracted out of the JSON blob the Charging Module service captures from the Rules Service and returns in its response.

Looks like the Rules service returns these in pounds, unlike all other values that are in pence.

This change fixes the issue for supported source charge (and fingers crossed that's it!)

Screenshot of incorrect value

Screenshot 2024-02-07 at 13 31 48

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

Back again! (see [Fix bill licence charge ref decimal in wrong place](#713))

The Billing & Data team have also spotted that the value shown against a supported source in the `/bill-licences` view has the decimal in the wrong place.

Both the charge reference charge (baseline charge) and Supported source charge are extracted out of the JSON blob the Charging Module service captures from the Rules Service and returns in its response.

Looks like the Rules service returns these in pounds, unlike all other values that are in pence.

This change fixes the issue for supported source charge (and fingers crossed that's it!)
@Cruikshanks Cruikshanks added the bug Something isn't working label Feb 7, 2024
@Cruikshanks Cruikshanks self-assigned this Feb 7, 2024
This means we can put our fix for this PR in the same place and not have to duplicate the comment.
@Cruikshanks Cruikshanks marked this pull request as ready for review February 7, 2024 14:19
@Cruikshanks Cruikshanks merged commit 272eb92 into main Feb 7, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-supported-source-decimal-point branch February 7, 2024 14:21
Cruikshanks added a commit that referenced this pull request Feb 9, 2024
https://eaflood.atlassian.net/browse/WATER-4363

We've just dealt with [Fix bill licence supp source decimal in wrong place](#714). This caused us to take a closer look at how the supported source charge is displayed in the new views.

Our eagle eyed testers spotted we were showing the value as a negative if the transaction itself is a credit and whether this is correct. When we double checked the legacy view we found it's not! 🤦

This change fixes the display so the supported source charge is always displayed as a positive.
Cruikshanks added a commit that referenced this pull request Feb 9, 2024
https://eaflood.atlassian.net/browse/WATER-4363

We've just dealt with [Fix bill licence supp source decimal in wrong place](#714). This caused us to take a closer look at how the supported source charge is displayed in the new views.

Our eagle-eyed testers spotted we were showing the value as a negative if the transaction itself is a credit and whether this is correct. When we double-checked the legacy view we found it's not! 🤦

This change fixes the display so the supported source charge is always displayed as a positive.
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