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

Hack for supplementary billing being late #183

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

Cruikshanks
Copy link
Member

SROC supplementary billing was always intended to be shipped for use in the financial year 2022-23. We know at some point it will need to go back and look at previous years, as the PRE-SROC legacy version already does. But when we started this functionality was going to be added later.

So, we wrote the current functionality to look at the current financial year. That's a great idea when it's October 2022 and you aim to be done by Christmas! Fast forward to now, we're still plugging away and finding scenarios we've not covered or not handled (because we didn't know BTW). This means we've fallen into the financial year 2023-24!

😱😱😱😱😱

As a hack, to allow us to ship supplementary billing and get the 2022-23 bills out and then move to multi-year billing we're hard-coding the BillingPeriodService to always return 2022-23 (the first year of SROC's existence).

SROC supplementary billing was always intended to be shipped for use in financial year 2022-23. We know at some point it will need to go back and look at previous years, as the PRE-SROC legacy version already does. But when we started this functionality was going to be added later.

So, we wrote the current functionality to just look at the current financial year. That's a great idea when it's October 2022 and you aim to be done by Christmas! Fast forward to now, we're still plugging away and finding scenarios we've not covered or not handled (because we didn't know BTW). Which means we've fallen into the financial year 2023-24!

😱😱😱😱😱

As a hack, to allow us to ship supplementary billing and get the 2022-23 bills out and allow us to then move to multi-year billing we're hard coding the `BillingPeriodService` to always return 2022-23 (the first year of SROC's existence).
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Apr 4, 2023
@Cruikshanks Cruikshanks self-assigned this Apr 4, 2023
@Cruikshanks Cruikshanks marked this pull request as ready for review April 4, 2023 13:32
@Cruikshanks Cruikshanks requested review from Jozzey and StuAA78 April 4, 2023 13:32
@Cruikshanks Cruikshanks merged commit 4c20c3f into main Apr 4, 2023
@Cruikshanks Cruikshanks deleted the hack-for-current-billing-period branch April 4, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants