TextilePOS Pro: offline point-of-sale for a textile shop
I built an offline Windows point-of-sale for a Pakistani textile shop and reshaped it, round by round, around what the owner said in his voice notes.
The problem
A textile shop owner needed one PC to run sales, stock, credit customers, returns and exchanges with no internet dependence. The first version had ten tabs and every module a textbook ERP would have. His feedback was that it felt too complicated, and that his numbers stopped adding up whenever a customer brought something back.
How I built it
I built it as a .NET 10 desktop app (WPF, SQLite through EF Core) in clean layers, so the money rules sit in a domain layer that knows nothing about the screen or the database. Every complaint from the owner became a fix plus a regression test. Bills go out as branded PDFs, and one click opens the customer's WhatsApp chat ready to send, because the shop has no printer.
What got hard
- Sales on the dashboard did not match the cash in the drawer. The owner showed three invoices totalling 18,700 against 15,500 actually received.
The dashboard total ignored returns while the cash line already netted refunds. I made sales net out returns everywhere they appear and added Total, Returned and Net columns to the invoice list, so the list adds up to the cash.
- Profit went negative when a customer swapped two suits for two different ones.
The replacement had been rung up as a normal sale at a zeroed price, which booked cost with no revenue. I built a dedicated Exchange action that returns the original, sells the replacement at its real price and settles only the difference. I then rebuilt his exact case (4 sold, 2 returned, 2 taken in exchange) as a test, along with the dearer and cheaper replacement cases.
- The owner could not find his way around. Field names showed only as hover tooltips, the dashboard read as a prototype, and he did not want a rewrite.
I put visible labels on every field and added low-stock and recent-invoice panels, leaving the parts he had praised (invoices, returns, purchasing) alone. A later round cut ten tabs to five and moved product and stock entry into popup forms.
- Feedback came as Urdu voice notes and phone screen recordings, and the machine I worked on was short of memory.
I transcribed the notes locally with a small speech model, splitting long clips into 20-second chunks, and read the recordings frame by frame. Each build shipped with a plain-language change note that answered his points one by one.
The result
Delivered to the shop as a self-contained Windows app that runs on a bare PC with no .NET install. The project carries 59 automated tests, including full sale, return, exchange and reporting cycles against a real SQLite database.
The ← and → keys turn the page too.