Offline POS: store stock as a ledger, not a counter
by Stacklyn Labs dev.to
2 min read
Here is a stock bug that throws no error, passes every single-device test, and still loses inventory. The counter model The obvious model is a number on the product: product.stock = 12; // on each sale: product.stock -= quantitySold; On one device it works. Now add a second till, and let both work offline. Both tills start with stock = 12. Till A sells 2, so it stores 10. Till B sells 3, so it st…
More like this
- Article 1 min read
Building an offline-first Flutter ledger for shops: what "no internet" really costs
by Bazaar Ledger
I built Bazaar Ledger, a shop bookkeeping app for Android with a Windows companion, and I want to share what offline-first did to the design. The rule. Every bill, payment and stock movement is writte...
Read on dev.to - Article 5 min read
The Shopkeeper's Ledger, Rebuilt for a Phone: Lessons from Building Ledgware
by Saqib Riaz
Walk into a small shop in Pakistan and you will find the real business running in a paper ledger. Who owes what, which stock is finished, what sold today — it is all there, in handwriting, in a book t...
Read on dev.to - Package
tiagosito/easy_search
Powerful Complete and Beautiful Search Component for Flutter - GitHub - tiagosito/easy_search: Powerful Complete and Beautiful Search Component for Flutter
View on github.com
Article 4 min readHow To Implement Online & Offline Connectivity In Flutter
In this tutorial, we'll learn how to implement Online & Offline connectivity in flutter apps. Their time comes when we need to check the Internet connection
Read on alltechsavvy.com