Total stock quantity in a warehouse may not be the same as the stock quantity that can be used in new transactions.
Available quantity of the relevant stock should be evaluated taking into account reservation movements and existing transaction links.
In stock assignment to sales orders, raw material selection in production, warehouse transfer, and stock issue transactions, checking only total stock quantity is not sufficient.