Start a project

A point of sale that keeps selling when the internet drops

A shop cannot stop selling because the connection dropped. The ERES point of sale keeps working offline and catches up when the line returns, without creating a sale twice or losing one.

Three parts make it work

  • A catalogue snapshot on the terminal: items, prices, taxes and the cashier's permissions, refreshed whenever the terminal is online.
  • An ID created on the terminal for every order, before it is ever sent, so the server can recognise a retry.
  • An outbox: orders queue locally and upload in order, retrying until the server confirms each one.

Idempotency: the same order, once

When an upload times out, the terminal cannot know whether the server saved it. So it sends it again with the same ID. The server stores that ID with a unique index; the second copy finds the first and returns the original result instead of posting a new sale. That single rule is what makes retrying safe.

What happens to stock and accounts

Stock and ledger postings happen on the server when the order is accepted, using the cost of the batch the goods left. A sale made offline at 2 pm and synced at 4 pm still posts with its 2 pm time, so daily reports stay correct.

Things we test before every release

  • Pull the network cable mid-sale, then restore it.
  • Sync the same outbox from two tabs at once.
  • Change a price on the server while a terminal is offline, and check which price the receipt and the books use.

Questions people ask

Can a POS system work without internet?
Yes, if it keeps a local copy of the catalogue and queues sales to upload later. ERES terminals do this and sync each order once when the connection returns.
How do you stop duplicate sales when syncing?
Each order gets an ID on the terminal. The server rejects a second order with the same ID and returns the first result, so retries are safe.
Do offline sales update stock correctly?
Yes. Stock and ledger postings are made on the server when the order syncs, dated at the time of the sale.