-
Notifications
You must be signed in to change notification settings - Fork 9.7k
fix: Update pick list locations quantity #50187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThis change modifies how Pick List items are created from Material Requests and updates quantity calculations in Pick Lists. In the Material Request module, a new helper function computes Pick List Item quantities by calculating the surplus stock as Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes The changes span two files with logic modifications affecting quantity calculations in the stock management workflow. The Material Request changes introduce a new helper function with conditional logic and filtering conditions that require understanding the business rules around stock surplus detection. The Pick List change, while a single-line modification, involves a computation that directly impacts Stock Entry item quantities. The heterogeneous nature of these changes across different modules and their impact on core stock operations warrants moderate review attention. Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)erpnext/stock/doctype/material_request/material_request.py (3)
🪛 Ruff (0.14.1)erpnext/stock/doctype/material_request/material_request.py890-890: Unused function argument: (ARG001) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Issue: When creating a Pick List against the partially picked Material Request, system is not calculating and passing the balance required quantity from MR.
Fix: System will update the qty when creating Pick List from MR as per the formula (Qty - Completed Qty) and only considers items if the balance quantity is above zero.
Ref: 50973
Before:
Screencast.from.21-10-25.08.24.46.PM.IST.webm
After:
Screencast.from.21-10-25.08.23.07.PM.IST.webm
While debugging the main issue, I identified an additional problem related to Transfer Entry creation from the Pick List and fixed it in the following commit:
Commit: f5860f2
Fix: Handled transfer quantity for multi-UOM items when creating a transfer from a pick list.
Backport Needed: v15