Minimums, safety stock, lead times and package sizes are set on each product in Settings → Products.
What the overview's “What do I need to buy” shows first.
Uses the expiry dates entered when purchases are received.