Order builder no intermediate negative stock
Modified getNextAlertInventoryDate to look optionally for the next alert date where the stock is minimal and under the alert quota
Use this in stock optimisation to not let Intermediate stock get under the minimal even thought getFutureInventory is above it