Skip to content

Feature/search on receiving table#81

Open
MohauNkepane wants to merge 2 commits into
pre-mainfrom
feature/searchOnReceivingTable
Open

Feature/search on receiving table#81
MohauNkepane wants to merge 2 commits into
pre-mainfrom
feature/searchOnReceivingTable

Conversation

@MohauNkepane

Copy link
Copy Markdown
Contributor

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.

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