Skip to content

Stock

How does batch and expiry tracking work for a shop?

Batch and expiry tracking records, for every lot you buy, its batch number and expiry date, and follows that lot through every sale. The lot that expires first is sold first, called FEFO; lots past their expiry are kept off the bill; and if a maker recalls a batch, you can list who bought it.

From the supplier's carton to a recall

Each step adds one fact to the lot, and together they let you answer the questions a pharmacy, a packaged-food shop or a paint dealer gets asked.

5 steps
At receipt
Enter the batch number and the expiry date from the pack on the goods receipt. For goods made in-house, such as sweets, the expiry is the making date plus the shelf life in days.
On the shelf
Stock is held lot by lot: 40 strips of batch A expiring in March, 60 of batch B expiring in December.
At the counter
The bill takes the lot that expires first. A lot already past its expiry is not sold.
Before expiry
A list of lots expiring in the next 30, 60 or 90 days shows what to return to the supplier, discount or move first.
On a recall
Search one batch number to see every bill that sold it and every customer who bought it.

FEFO and FIFO pick a different lot when deliveries cross

Lot A arrived on 1 June and expires in March 2027. Lot B arrived on 15 June and expires in December 2026. FIFO sells A first; FEFO sells B first, which is the right answer for anything that expires.

First expiry, first out
First expiry, first out compared with first in, first out
 FEFOFIFO
Sells firstThe lot that expires soonestThe lot that arrived first
SuitsMedicines, packaged food, sweets, paints, adhesivesGoods that do not expire: hardware, cloth, utensils
When they differA later delivery with a shorter expirySame case, and FIFO picks the wrong lot
Risk if ignoredExpired stock found on the shelfOld stock ageing at the back

Which shops need batch and expiry tracking

Any shop that sells something with a date on the pack, or makes something that spoils, gains from tracking lots.

6 trades
  • Pharmacy

    Every strip and bottle carries a batch and an expiry. A recall notice names the batch, and the bill is the only record of who bought it.

  • Kirana and packaged food

    Packaged food labels carry a batch or lot number and a use-by or best-before date. Dates move fastest on dairy, bakery and snacks.

  • Sweet shop

    Milk sweets keep for days, dry sweets for weeks. Shelf life in days on each item gives every tray its own expiry.

  • Paints and chemicals

    Paint, adhesives, sealants and fertilisers carry batch numbers, and shade or strength can differ between batches.

  • Cosmetics

    Creams, colours and perfumes expire, and a customer complaint usually starts with the batch number.

  • Barcodes that carry the lot

    GS1 barcodes can carry the batch in application identifier (10) and the expiry date in (17), so one scan records both.

How Dhaaga tracks batches and expiry

Batches are recorded at receipt and asked for at the counter, so the lot on the bill is the lot that left the shelf.

FEFO by default
  • Batch on the receipt

    Each goods receipt line holds a batch number, and a batch can take its expiry from the item's shelf life in days.

  • Soonest expiry first

    Batch picking defaults to soonest expiry. Expired and quarantined lots are never suggested.

  • Lot asked at the counter

    For a batch-tracked item the billing counter asks which lot, offering the one that expires first. A GS1 barcode fills in the batch and expiry, and an expired one is flagged.

  • Expiring and traced

    Lots past or near their expiry are listed across all items, and a batch can be traced forward through the movements that took it.

Questions people ask first.

6

First expiry, first out. The lot with the earliest expiry date is sold or used first, whatever order the lots arrived in.

A batch number covers a whole lot made together, such as 500 bottles. A serial number belongs to one single piece, such as one mobile phone or one motor.

Early enough to return it. Many suppliers accept expiry returns only within a window before the date, so a 60 or 90-day warning list is common for medicines.

Tracking each day's making as a batch with a shelf life in days is enough. It tells the counter which tray to sell first and which to remove.

Yes, when the pack carries a GS1 barcode such as a GS1 DataMatrix or GS1-128. Application identifier (10) holds the batch and (17) the expiry date.

It can. With batch-wise cost, each lot keeps its own purchase rate, which suits goods bought at different prices with different expiry dates.

The fastest honest test

Put one real day through it.

Not a sandbox with sample data — your own bills, your own items, your own customers. By evening you will know whether this runs your business.

A full business day flowing through Dhaaga from opening tasks to balanced books