In ERPNext, I have created a stock entry for ‘stock received’ based on inventory dimension-wise for three locations: Ahmedabad, Rajkot, and Surat. The stock quantities received are as follows: Ahmedabad (10), Rajkot (11), and Surat (12).
When attempting to use stock from the first location (Ahmedabad), an error is thrown if more than 10 quantities are selected, which is correct. However, for the second location (Rajkot), the system incorrectly throws an error if the selected quantity exceeds 21 instead of 11. Similarly, the balance quantity for Surat is shown as 33 instead of 12.
How can I ensure that the balance quantity is accurately reflected for each location and that errors are correctly shown based on the actual quantities received per location in ERPNext?