A ShopSyncer build story
Working build, pre-launch
Keep selling when the internet drops
How we built ShopSyncer, a barcode-first point of sale with a stock ledger that only grows and a checkout that works offline.
By Doerwise ·
The wish
I want a point of sale that fits my shop. That was the whole brief, and every word of it matters at a busy counter.
A busy counter scans fast and takes payment without reaching for a mouse. A shop may have one branch or several, with stock moving between them. It may sell more than one kind of thing: groceries at a shelf price, medicine, and gold that is priced by weight on the day.
Why it sounded impossible
Two promises pull against each other. The stock count has to be right, every time, at every branch. And checkout has to keep going when the internet drops, because customers do not wait for a router.
A count that anyone can edit drifts, and once it drifts nobody can say why. A till that goes offline can do one of two bad things: it stops selling, or it sells and then risks counting the same sale twice when it reconnects. Either way the numbers at closing time stop adding up.
A ledger that only grows
We made stock a ledger. Every goods receipt, every sale and every transfer between branches is added as a new line: what moved, by how much, the reference behind it, and the balance after it. Nothing above that line can be changed.
Stock on hand is what the lines add up to, so it always adds up. When a number looks wrong, you can read down the ledger and see each movement that made it, from the goods receipt that brought the stock in to the order that sold it.
Branches work the same way. Stock moves between them as recorded transfers, so each branch knows what it holds and the ledger shows how it got there.
Selling through a dropped connection
When the connection drops, checkout keeps working. Each sale is saved on the device and waits in a queue. When the connection comes back, the queue syncs.
The hard part is the last step. A sale that syncs twice takes stock twice and puts the day's takings out. ShopSyncer is built so that a queued sale is never dropped and none is counted twice, which is what lets the ledger stay honest through an outage.
Built for the counter
Checkout is barcode-first. Scan or search, adjust the quantity, then press F2 to take payment. Take the cash and the change due is shown. The sale completes with the loyalty points it earned, and F4 starts the next one.
Prices follow the product type. Retail and pharmacy lines use the shelf price. Gold is worked out at the till as the rate per gram times the net weight, plus the making charge, with the rate entered for the sale.
Where it stands
ShopSyncer is a working build, pre-launch. It runs on the web, for one branch or several, and it has not launched publicly.
Its product page has a sample checkout you can play: scan a product, take payment, and watch the sale write itself into the stock ledger.