Hello Dokos Community,
I’m currently setting up a distributed architecture for a business using Dokos (previously ERPNext), and would appreciate your guidance on configuring the system to enable centralized inventory and accounting with independent shop sites.
System Architecture
Godown (Central Warehouse):
- Manages all local purchases, supplier invoices, and accounting
- Transfers stock to multiple shop locations (Shop1, Shop2, …)
- Needs to track each shop’s stock and sales activity
- Hosted on
godown.local
Shops (e.g., Shop1, Shop2):
- Hosted separately (
shop1.local
,shop2.local
) - Each has its own Warehouse (e.g.,
SHOP1-WH
) - Handle only:
- Sales Invoices
- Sales Returns
- Stock Reconciliation
- No purchase capability — stock only comes from Godown
- Must sync sales and stock back to Godown for accurate records
Guidance Needed On:
Automated Stock Transfers
- Can Dokos support auto-stock transfer triggers from Godown to shops based on min stock/demand?
- Is there a built-in replenishment mechanism or should we script it?
Sales Sync from Shops to Godown
- What’s the best way to push Sales/Stock data back to Godown from each shop (separate site)?
- Would custom Webhooks/API endpoints or Scheduled Jobs be better?
Sublocation Tracking at Godown
- How can Godown track each shop warehouse and its sales separately?
- Should we configure each Shop warehouse under the same company as sub-warehouses?
Centralized Accounting
- How do we structure accounting so Godown handles all Accounts Payable, while shops do only POS/Sales?
- Should each Shop operate under the same Company or separate ones?
Permissions
- Godown should have read-only access to each shop’s sales/stock data
- Shops should only access their own site/data
- Best way to isolate permissions in multi-site Dokos setup?
Multitenancy
- Using Dokos with multi-site deployment: any settings I should be careful with to allow cross-site data sync?
Dokos Version Compatibility
- I’m using Dokos (forked from ERPNext v14+). Should I consider upgrading to a newer version (or ERPNext v15) to support this architecture better?
Expected Outcome
- Central Godown site handles purchasing, stock, and accounting
- Shops run independently with local sales
- Two-way sync for stock transfers and sales data (Godown ⇄ Shops)
- Each site tracks its own data but Godown can view consolidated status