Issue Summary:
When creating a Subcontracting Receipt, there is a discrepancy in how the stock is deducted from the Subcontracting Warehouse. The receipt allows users to input both Accepted Quantity and Rejected Quantity, and the system automatically calculates the Received Quantity as the sum of the two. However, the quantity being deducted from the Subcontracting Warehouse is only the Accepted Quantity, rather than the total Received Quantity.
Steps to Reproduce:
- Create a Subcontracting Receipt.
- Enter the Accepted Quantity (e.g., 90) and Rejected Quantity (e.g., 10).
- The system automatically calculates the Received Quantity (90 + 10 = 100).
- Submit the receipt and verify the stock deducted from the Subcontracting Warehouse.
Expected Behavior:
The system should deduct the total Received Quantity (in this case, 100) from the Subcontracting Warehouse, since both Accepted and Rejected quantities have been received.
Actual Behavior:
The system only deducts the Accepted Quantity (in this case, 90) from the Subcontracting Warehouse, leading to an inconsistency in stock management.
Impact:
This issue leads to inaccurate stock levels in the Subcontracting Warehouse, as the total quantity received is not fully accounted for, which may result in stock mismatches and discrepancies in inventory management.
Environment:
- ERPNext version: v14.39.0 (version-14)
- Frappe Framework:** v14.49.0 (version-14)