-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
fix: Update Bin via Update Item on Purchase/Sales Order #23509
Conversation
If user add rows or remove rows to update items on purchase order, the quantity in bin won't get updated. This fix is not mature yet but to give an tempopary solution for fixing this issue.
1. set warehouse using `get_item_warehouse` 2. update "reserved_qty" for sales order
@AndyOverLord can you add unit tests for the same ? |
@marination Sorry, not sure how to add unit tests for this? Any instructions I can follow? |
Updating Bin quantity based on doctype to optimize running efficiency.
@AndyOverLord you can refer to |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within a week if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
@marination @rohitwaghchaure Can you add test cases for this PR? Also need to write a patch for reposting reserved and ordered qty. This is actually critical, should be fixed asap. |
@nabinhait done |
- Created separate smaller functions for validation and bin updation of deleted row - Made sure previous doc (linked doc) was also updated after deletion of row - Tests to check bin updation on add/update/delete - Made reserved qty for subcontrating read only in bin
Issue:
Fix:
validate_and_delete_children
Miscellanous: