Feature/search on receiving table#81
Open
MohauNkepane wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the stock receive product loading flow to prevent browser freezes/crashes when receiving against programs or requisitions with many products.
The receive creation screen no longer loads all approved products up front. Instead, requisition-based receiving loads only the non-skipped requisition products, and manual receiving uses a searchable product dropdown that fetches matching products on demand. The product dropdown now shows search progress and completion status.
The receiving table was also optimized by deferring lot option preparation until rows are visible, adding stable row tracking, and precomputing repeated display values such as SOH, expiry date, NDSO assignment state, and amount.
Key Changes
Added receive-specific product lookup service using stock card summary queries.
Changed receive route product loading to target requisition orderables only.
Added searchable Select2 product dropdown for receive product lookup.
Added search status messages for loading, complete, and no-results states.
Deferred batch/lot option preparation for visible rows only.
Reduced Angular digest work in the receive table.
Guarded receive-only dropdown behavior so issue and adjustment flows keep their existing dropdown behavior.