Currently, the Sale Stock Quantity module displays a warning or an error message in case of quantity smaller than the forecast. But the module only uses the “Sale Date” in the context of calculating the forecast.
If we create a sale on today’s date with a shipping date in the future. If we don’t have the stock available on the current date, the system gives a warning on the forecast, even if we have placed a shipment date in the future (even if you have stock in the forecast on the shipping date indicated)
The user must check with a “relate” on the products the stock forecast to pass above the warning.
The date of the sale must be dated the current date of the order and not in the future.
I think the “Sale Stock Quantity” module should use the “planned_shipping_date” from the sale module as the date of the forecast calculation.