Skip to content

preserve line items across pagination in stock adjustment creation#77

Open
BafokengMasitha wants to merge 1 commit into
pre-mainfrom
fix/stock-adjustment-page-reset
Open

preserve line items across pagination in stock adjustment creation#77
BafokengMasitha wants to merge 1 commit into
pre-mainfrom
fix/stock-adjustment-page-reset

Conversation

@BafokengMasitha

Copy link
Copy Markdown

When users added more than 10 products for stock adjustment, navigating to page 2 wiped all added items because the controller reinitialized and lost addedLineItems from memory. Fixed by introducing a lightweight adjustmentLineItemsService in the controller file to store line items outside the controller lifecycle, ensuring they persist across page navigation and are cleared on successful submission or when navigating away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant