Table of Contents
1. System Architecture & Tenancy
Aamdani is designed with strict multi-tenant boundaries. All tenant organizations are logically isolated using secure database routing and scoped access tokens. The POS interface utilizes local IndexedDB browser persistence for instantaneous zero-latency operations even during catastrophic internet loss, and synchronizes asynchronously via WebSocket channels and idempotent background workers.
2. Point of Sale & Offline Till Engine
The counter register handles high-throughput transactions:
- Offline Queue: Invoices generated offline are tagged with client-side UUIDs. Upon reconnect, the synchronization engine verifies monotonic invoice serial sequences without duplication.
- Cashier Blind Closing: Enforces cashiers to declare actual cash-in-drawer counts prior to viewing the system balance, eliminating till skimming.
- Hardware Drivers: Native WebSocket printer bridge supports ESC/POS raw hex commands for cutting, buzzer alerts, and barcode rendering.
3. Double-Entry Inventory Ledger
Unlike simple spreadsheet stock counters, Aamdani utilizes an immutable ledger:
Credit: On-Hand Inventory Asset [Outlet: Connaught Place Store]
Stock balances cannot be directly overwritten; adjustments require explicit physical audit variance entries with compensating General Ledger records.
6. Webhooks & REST APIs
Developers can subscribe to operational events. Every webhook payload is signed with a secret key in the X-Aamdani-Signature header:
{
"event": "order.completed",
"tenant_id": "org_98721",
"order_id": "ORD-2026-90214",
"channel": "POS_COUNTER",
"total_amount": 1450.00,
"tax_amount": 72.50
}