Check that stock is issued first-in-first-out, or first-expired-first-out for dated goods, and that locations make the rule easy to follow.
JavaScript is needed for this interactive tool.