-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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: warehouse not mapping correctly during Delivery Note creation. #42809
Conversation
@deepeshgarg007 please check and review |
@deepeshgarg007 @ruthra-kumar please check and review |
@Vishnu7025 |
@ruthra-kumar Please create a sales order with item X of quantity 10 and reserve the stock in two different warehouses (e.g., 5 in Warehouse A and 5 in Warehouse B). When creating a delivery note from the sales order, the quantity splits based on the reserved stock, but the warehouse remains the same. For more details, please refer to the video above. If you still can't replicate the issue, please let me know. |
@Vishnu7025 sre.mp4The issue you've mentioned, only happens if Sales Order Item's and its SRE's have a different warehouse.But, I'm not clear on how that scenario can happen. Could you provide an example? |
dsdfsd.-.SAL-ORD-2024-00003.-.Google.Chrome.2024-09-09.14-43-29.mp4@ruthra-kumar Yes, you are correct that the system pulls the warehouse from the Sales Order, and the Delivery Note creation process splits items based on the reserved quantities. However, the issue arises when the same item is stored in different warehouses. In such cases, instead of splitting the items by the specific warehouse as defined in the Sales Order, the system only considers the reserved quantities and not the associated warehouse. For more details, please refer to the video |
I've added a test case. Will merge once all test passes. |
Thanks for adding the test case! Let me know if you need any further input. Looking forward to the merge once all tests pass. |
66f9f3b
to
e5b6998
Compare
Wahni.-.SAL-ORD-2024-00003.-.Google.Chrome.2024-08-18.15-20-40.mp4