Stock in a batch

Record a new batch — cost, selling price, batch number, expiry, supplier — as a single restock or in bulk.

4 min readUpdated 1 December 2026

Stocking in tells RxShelf a new physical batch of a product has arrived. Every batch carries its own cost, selling price, batch number, expiry, and supplier — because a pharmacy buys the same product at different prices from different vendors over time, and FEFO needs the expiry date to know which batch to dispense first.

This page is for products you already have in RxShelf. For a brand-new product that arrives with its first delivery, use Add products with stock.

Two paths, same underlying engine — pick the one that matches your delivery size:

  • Single-product restock — one product, one shipment. Fast, opened as a dialog.
  • Bulk stock in — many products at once. A whole page, saveable draft.

Path 1 — Single-product restock

Open any product from Inventory → Products (or its detail page) and click Restock. A dialog appears.

Single-product restock via the dialog.
Demo coming soon
Single-product restock via the dialog.

The prices start from the last batch you received of this product — cost, selling price and (if you have wholesale permission) wholesale and RW prices — so a repeat delivery at the same price is just quantity and expiry. Change any price that's different this time. A product you've never stocked before starts with empty prices and its default markups.

Fill in:

  • Quantity received.
  • Cost price — per unit, this delivery.
  • Markup % — worked out from the prices, or the product's default markup for a new product. Editable.
  • Selling price — auto-calculated from cost × markup, but editable.
  • Wholesale markup % and Wholesale price — same pair, for wholesale. Only shown if you have the wholesale permission.
  • Supplier — pick from the supplier list, or create one inline.
  • Batch number (optional) — the manufacturer's lot number from the pack or invoice. Leave blank if you don't have it.
  • Expiry date — required for drugs, optional for consumables.

Click Restock.

Path 2 — Bulk stock in

Sidebar: Inventory → Stock In. For a delivery that includes multiple products.

Bulk stock in — queue, review, and commit.
Demo coming soon
Bulk stock in — queue, review, and commit.
  1. Pick products from the picker on the left — click each product to add it to the queue.
  2. Open Review when the queue has everything you need — a table opens with one row per product.
  3. Fill each row — quantity, cost, markup, selling price, batch number (optional), expiry (required for drugs), and supplier. Prices start from each product's last batch (a product never stocked before starts from its default markups). As you type on any row, RxShelf keeps cost, markup, and selling in sync — type cost or markup and the selling price recomputes; type a selling price and the markup recomputes. All auto-calc rounds to the nearest kobo.
  4. Submit — drugs missing an expiry date are flagged before submit. Every row becomes a new batch; stock aggregates update automatically.

Why every field matters

  • Cost + selling price + markup are locked onto the batch at save time and cannot be changed later. Historical sales always reflect the price at which stock was dispensed.
  • Expiry drives FEFO — RxShelf always dispenses from the batch with the earliest expiry first.
  • Supplier is stored per batch. If you switch vendors later, historical batches still show the vendor who supplied them.
  • Batch number is a pharmaceutical traceability field — used in procurement reports, NAFDAC recall workflows, and the bin card.

FEFO — First Expiry, First Out

You never pick which batch to sell from. When a sale is recorded, RxShelf deducts from the batch with the earliest expiry first, rolling into the next batch if the quantity spans one. Consumables with no expiry sort last (they act as last-resort FIFO).

The Price on Inventory → Products (and on a product's own page) follows the same rule: it's the selling price of the batch that will be sold next, not the last one you stocked in. If that batch runs out or expires, the price moves to the next batch. If nothing is left to sell, it shows —.

Expired batches

Expired batches don't magically disappear from FEFO. Manage them from Inventory → Expiry: filter by expired / expiring in 30 / 60 / 90 days, and quarantine expired stock so it stops appearing in sales.

Next steps