Problem
What it replaces
Urusin Kasir is built for shops whose trade has rules a generic POS cannot express. A company owns workspaces, a workspace picks a trade module and holds one or more locations, and stock is a ledger of movements produced by final documents, so corrections arrive as new documents and the history stays auditable. Money and quantities are stored as scaled integers, never floats. The first module is agriculture: farm-shop pricing, packaging that converts into base units, harvest credit, subsidised fertiliser with its own stock, and registered recipients. The counter runs offline-first on mobile, while a web cashier ships first.
Capabilities
What the system does
- Company, workspace and location structure with per-workspace trade modules
- Stock as an append-only movement ledger with final documents
- Scaled-integer money and quantities, rounding per line
- Counter that runs offline-first on mobile and syncs through an outbox
- Harvest-season credit and consignment support
- Subsidised fertiliser with its own stock and registered recipients
Decisions
What shaped the build
Stock as an append-only ledger
Stock is never a mutable number. Documents produce movements, and corrections arrive as new documents, which keeps history auditable at high volume.
Scaled integers for money and quantity
Amounts are stored as rupiah times one hundred and quantities times one thousand, never floats, with rounding per line and shared test cases across Go and Dart.
Offline-first with an idempotent outbox
The counter writes to an encrypted local store and syncs through an outbox, so a dropped connection mid-transaction cannot corrupt or duplicate a sale.
Company, workspace, location
Tenancy is structural: every operational table carries company and workspace, and a workspace picks its trade module, so a new trade is a module rather than a fork.
Rules
What it refuses to do
Every operational table carries company and workspace, so tenant isolation is structural
Free mode works locally without login; upgrading moves the same data with the same IDs
Sales documents are never edited — corrections are new documents
Negative stock is refused by default and can only be allowed per location