-
Notifications
You must be signed in to change notification settings - Fork 0
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
Determine if licence is 'billed' #82
Conversation
https://eaflood.atlassian.net/browse/WATER-3868 We also need to know whether a charge version has already been ‘billed’ in the current period. If so we’ll have to ensure it’s credited as part of the bill run before we recalculate the debit. For each charge version that is a candidate for billing, we need to determine if it was included in a `billing_batch` for the current period. For now, the result of this check should be included in the `/check/supplementary` endpoint results, against each charge version. That way we can verify if it is working correctly.
It was decided that checking if a charge version had been included in a bill run was not to be done at this point and we should check if the licence had been included instead. In order to do this we needed to create some new models.
Initially this ticket referred to the charge version. Following a chat with Alan this was changed to the licence after digging into the structure of the data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just got a possible suggestion for using one of the built-in Array functions to determine if an array contains something, rather than a for loop.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://eaflood.atlassian.net/browse/WATER-3868
We need to know whether a licence has already been ‘billed’ in the current period. If so we’ll have to ensure it’s credited as part of the bill run before we recalculate the debit.
For each licence that is a candidate for billing, we need to determine if it was included in a
billing_batch
for the current period.For now, the result of this check should be included in the
/check/supplementary
endpoint results, against each licence. That way we can verify if it is working correctly.