Batches with their own expiry and MRP
A batch is an item and a batch number. The first receipt that names a batch sets its manufacture date, expiry date and MRP. A later receipt that states a different expiry or MRP for the same batch is refused, because a real batch has one of each; one that leaves them out takes the batch's.
Under Masters, Locations, Stock rules, a company chooses whether a receipt line with no batch gets one numbered automatically or must name its batch.
A shelf life and a warning for each item
Under Settings, Expiry alerts, an owner or admin sets each item's shelf life in days and how many days before expiry the warning starts (2 days if left blank on a new item). Set one item at a time, many at once, or upload a CSV. Leave both blank to turn expiry tracking off for an item.
A batch's printed expiry date is used when it has one. Otherwise the stock expires its shelf life after the day it was received. Alerts are raised for items that have a rule.
Alerts on the inventory page
The Inventory page lists the stock inside its warning window and the stock already expired, soonest first, with the days left, the batch, the quantity left and the location. Mark an alert handled once someone has dealt with it, or undo that.
The batch that expires first goes first
When a sale or a transfer does not name a batch, the company's rule picks one: the batch that expires first, which is the default, or the oldest receipt first. An expired batch is not taken while unexpired stock of the item is at that location. A line that names a batch takes that batch.