CASE Nº I ✺ RETAIL & WHOLESALE BILLING
Hardware Store ERP: Everything goes through. Or nothing does.
A sale is never just a PDF. It moves stock, changes what a customer owes and lands in the books. This ERP keeps those three records in agreement — even when something fails halfway.
Try it: sell a bag, then pull the plug halfway. Or race two counters for the last bag.
- No sales yet
3 bags
₹0 owed
- Sell a bag, or race two counters for the last one.
One transaction, six steps
Invoice creation runs as a single PostgreSQL transaction with FOR UPDATE row locks. Invoice, stock and ledger commit together or not at all — two counters can sell the last bag of cement without both succeeding.
Slow work stays out of the sale
BullMQ workers on Redis render invoice PDFs with Puppeteer and store them privately in S3, so the counter never waits on a document. pg_trgm search finds products from partial or misspelled names.
Run where the shop runs
Billing, inventory, pricing, unit conversion, customer ledgers and financial reports — deployed on Ubuntu with AWS RDS PostgreSQL and CloudFront.








