KhataApp
A mobile-first stock and khata app built to work offline. Payments settle against old sales automatically and receipts go out on WhatsApp. First deployed for Saram, a plastic granules wholesaler.

What changed
- The paper register and Excel are gone. Every sale, payment, return and expense recorded in one tap
- "Who owes what" is live at all times, highest first, overdue highlighted. No more end-of-month reckoning
- Payment matching and advance credit are handled by unit-tested logic, not by a person
- Roughly 11,000 lines of TypeScript, 82 commits, six days from first build to handover
Screens

What it does
- FIFO payment settlement: a payment applies itself to the oldest unpaid sales first, and each sale's status updates on its own
- Advance credit: any surplus paid is held as credit, and the next sale consumes it before anything else
- Excel-like customer ledger with a running balance on every row
- Manual per-bag pricing: the rate changes daily, so it is typed on every entry
- Returns and corrections: a return or deletion frees the money and reallocates it across the remaining sales
- Dues tracking: each customer's outstanding balance, due date and overdue highlight
- WhatsApp receipt and statement: shop-branded PNG image or text link, with the amount in words
- Offline-first: Firestore local cache keeps the app working with no connection
Read the full case study
The problem in detail, what was built and why, every feature, and the measured results.
Continue readingRelated Projects

Hair Focus
A salon management system that computes payroll on the server from attendance, bookings, advances and loans. Nothing is calculated in the browser. Built for Hair Focus, a grooming salon in Pakistan.

Al Rimal Website
A landscaping company website built only from verified facts. Concept visuals stand in for project photos and the enquiry form hands off to WhatsApp. Built for Al Rimal, Dubai.
Herbo Dawakhana
An herbal eCommerce platform where customers buy natural products online, with admin tools for the business to manage products, orders, customers, reviews and analytics.