Skip to content

[OBPIH-6612] BUGFIX: set amount field when migrating existing final prepayment invoice items#4838

Merged
ewaterman merged 4 commits intorelease/0.9.2-hotfix1from
OBPIH-6612
Sep 12, 2024
Merged

[OBPIH-6612] BUGFIX: set amount field when migrating existing final prepayment invoice items#4838
ewaterman merged 4 commits intorelease/0.9.2-hotfix1from
OBPIH-6612

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-6612

Description: When migrating existing prepayment invoices, we need to also set the amount field for any existing final invoice items so that the "Total Price" column displays correctly when viewing the final invoice.

@github-actions github-actions bot added domain: backend Changes or discussions relating to the backend server flag: schema change Hilights a pull request that contains a change to the database schema labels Sep 11, 2024
}

prepaymentInvoiceMigrationService.generateInverseInvoiceItems(prepaymentInvoice, regularInvoice)
prepaymentInvoiceMigrationService.migrateFinalInvoice(prepaymentInvoice, regularInvoice)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how it will act in this case, but usually, we don't edit the existing migrations, since they could be already run on an instance, so in order to make sure this would work, you should probably delete the record of this migration on staging.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, after merging I will reload staging's db. So I think this should not be an issue there.

@ewaterman ewaterman merged commit 855ffa7 into release/0.9.2-hotfix1 Sep 12, 2024
@ewaterman ewaterman deleted the OBPIH-6612 branch September 12, 2024 14:04
jwalbers pushed a commit to jwalbers/openboxes that referenced this pull request Oct 29, 2024
jwalbers pushed a commit to jwalbers/openboxes that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server flag: schema change Hilights a pull request that contains a change to the database schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants