Trading and distribution

Inventory management and ERP software source code

Stock systems fail in two ways: numbers drift, or orders oversell. Inventra records every stock change as a movement on an append-only ledger and updates quantities inside database transactions, so on-hand stock stays explainable.

It is built with Next.js 15 and MongoDB, with a read-only live demo and ten one-click demo logins, from warehouse manager and cashier to B2B customer and vendor.

Updated 25 October 2026

What is included

  • Multi-facility stock: warehouses, fulfilment centres, shops and 3PLs with bins, batches, serials and FIFO / FEFO cost layers
  • Purchasing with emailed purchase orders, receiving, ASNs and vendor scorecards, plus a vendor portal
  • Sales with contract, volume and tier pricing, credit holds, pick, pack and ship, returns and credit notes
  • Point of sale with barcode scanning, split tenders, register shifts and an offline sale queue that syncs when the connection returns
  • Logistics documents, a B2B ordering portal and a double-entry ledger with P&L, balance sheet and cash flow

Questions to ask of any inventory system

  • Can every stock number be traced to the documents that changed it?
  • What happens when two orders reserve the last units at the same time?
  • Does it cost stock by lot or expiry, not just an average?
  • Can the shop keep selling when the internet drops?

The product

Frequently asked questions

Yes. Sales made offline are queued in the browser and synced when the connection returns, without creating duplicates.