Skip to content

OBPIH-6500 [frontend] Modifications to the invoice confirmation page (fix after QA)#4803

Merged
awalkowiak merged 1 commit intofeature/OBPIH-6398-partial-invoices-for-prepaid-pofrom
OBPIH-6500-3
Aug 26, 2024
Merged

OBPIH-6500 [frontend] Modifications to the invoice confirmation page (fix after QA)#4803
awalkowiak merged 1 commit intofeature/OBPIH-6398-partial-invoices-for-prepaid-pofrom
OBPIH-6500-3

Conversation

@alannadolny
Copy link
Collaborator

✨ 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:

Description:

The reopening was caused by duplicating some invoice items / missing some invoice items. Pagination on the frontend fetched items in parts:
0-10 items
10-20 items
20-30 items
....
Each data fetching was in a different order, so each request can duplicate items.

@alannadolny alannadolny self-assigned this Aug 26, 2024
@github-actions github-actions bot added the domain: backend Changes or discussions relating to the backend server label Aug 26, 2024
invoiceItems = InvoiceItem.createCriteria().list(max: max.toInteger(), offset: offset.toInteger()) {
eq("invoice", invoice)
order("inverse", "asc")
order("id", "asc")
Copy link
Collaborator

@awalkowiak awalkowiak Aug 26, 2024

Choose a reason for hiding this comment

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

Perhaps sorting by product code here would be better? Before falling back on id?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, we can invoice a few products with the same product code and the same issue will be visible.

@awalkowiak awalkowiak merged commit 074eff0 into feature/OBPIH-6398-partial-invoices-for-prepaid-po Aug 26, 2024
@awalkowiak awalkowiak deleted the OBPIH-6500-3 branch August 26, 2024 16:25
awalkowiak pushed a commit that referenced this pull request Sep 6, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants