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 reissuing ALCS invoice bug #311

Merged
merged 4 commits into from
Jul 19, 2023
Merged

Conversation

StuAA78
Copy link
Contributor

@StuAA78 StuAA78 commented Jul 19, 2023

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

Reissuing was confirmed working in our local environments but was continuing to fail in dev. When we checked the logs we realised that it was failing because it was fetching alcs invoices that were awaiting reissuing as well as sroc ones! This then causes an error to come back from the CM as it won't reissue an alcs invoice onto an sroc bill run.

We resolve this by updating FetchInvoicesToBeReissuedService to only fetch invoices linked to an sroc billing batch.

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

Reissuing was confirmed working in our local environments but was continuing to fail in `dev`. When we checked the logs we realised that it was failing because it was fetching alcs invoices that were awaiting reissuing as well as sroc ones! This then causes an error to come back from the CM as it won't reissue an alcs invoice onto an sroc bill run.

We resolve this by updating `FetchInvoicesToBeReissuedService` to only fetch invoices linked to an sroc billing batch.
@StuAA78 StuAA78 added the bug Something isn't working label Jul 19, 2023
@StuAA78 StuAA78 self-assigned this Jul 19, 2023
@StuAA78 StuAA78 changed the title Stop reissuing from trying to reissue ALCS invoices Fix reissuing ALCS invoice bug Jul 19, 2023
@StuAA78 StuAA78 marked this pull request as ready for review July 19, 2023 09:28
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.

Just 1 comment.

A comment during peer review made us realise we don't need to create the alcs billing batch for all tests, just the one where we're specifically testing that we don't retrieve alcs invoices
@StuAA78 StuAA78 requested a review from Jozzey July 19, 2023 11:47
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.

👍🏼

@StuAA78 StuAA78 merged commit 2190d2f into main Jul 19, 2023
@StuAA78 StuAA78 deleted the fix-reissuing-fetching-alcs-invoices branch July 19, 2023 12:01
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