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

Add charging model to review model relationships #1120

Merged
merged 8 commits into from
Jun 19, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Jun 19, 2024

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

Part of the work for two-part tariff annual billing

Our billing engines work on the basis of starting by selecting the appropriate billing accounts, then the data needed to generate bills for them.

This means we are going from charging information (charge versions, references and elements) to review information (also charge versions, references and elements!)

When we created the review models, we included the relationships to link them to charging information. But we didn't do the same on the charging side.

In order to generate the bills, we need to be able to link from that direction, hence this change.

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

> Part of the work for two-part tariff annual billing

Our billing engines work on the basis of starting by selecting the appropriate billing accounts, then the data needed to generate bills for them.

This means we are going from charging information (charge versions, references and elements) _to_ review information (also charge versions, references and elements!)

When we created the review models we included the relationships to link them to charging information. But we didn't do the same on the charging side.

In order to generate the bills we need to be able to link from that direction hence this change.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jun 19, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 19, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review June 19, 2024 08:59
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 3927979 into main Jun 19, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the add-review-model-relationships branch June 19, 2024 10:45
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.

2 participants