The sale_stock_quantity module check the stock quantity of the products when quoting a sale. The check will warn the user if the forecast quantity at the sale date (and further dates until next supply) is lower than the quantity sold by considering other sales and the stock forecasts.