How rohitmunger1989/posnext-retail works
POS Next is an ERPNext point-of-sale application with a Vue client and Frappe server APIs. The primary workflow is cashier sign-in, item search and cart preparation, promotion and payment selection, invoice submission, and receipt printing; it also supports returns, shifts, offline sales, drafts, and customer display. The graph combines documented product capabilities with relationships visible in the supplied excerpts and source index. Several feature implementations were not sampled, so those connections are intentionally left out rather than inferred.
Main entry points: POSSale.vue Sales workspace · invoices.py Invoice processing · wallet_transaction.py Wallet transactions · offline.worker.js Offline worker
Components 22
POS client
- App initialization
POS/src/main.js - Authentication routing
POS/src/router.js - Sales workspace
POS/src/pages/POSSale.vue - Item search
POS/src/stores/itemSearch.js - Cart state
POS/src/stores/posCart.js - Payment and checkout
POS/src/components/sale/PaymentDialog.vue - Draft invoices
POS/src/utils/draftManager.js - Returns interface
POS/src/components/sale/ReturnInvoiceDialog.vue - Shift workflow
POS/src/composables/useShift.js - Customer display
POS/src/pages/CustomerDisplay.vue
Offline capability
- Offline worker client
POS/src/utils/offline/workerClient.js - Offline state
POS/src/utils/offline/offlineState.js - Offline worker
POS/src/workers/offline.worker.js
POS server
- Invoice processing
pos_next/api/invoices.py - Return processing
pos_next/api/retail_returns.py - Credit sales
pos_next/api/credit_sales.py - Wallet services
pos_next/api/wallet.py
ERP domain
- Coupon rules
pos_next/pos_next/doctype/pos_coupon/pos_coupon.py - Pricing rules
pos_next/overrides/pricing_rule.py - Wallet transactions
pos_next/pos_next/doctype/wallet_transaction/wallet_transaction.py
Other components
- Cashier
- ERPNext accounting and stock
Connections 23
- Cashier → App initialization: opens POS
README.md - App initialization → Authentication routing: initializes router
POS/src/main.js - Authentication routing → Sales workspace: routes to
POS/src/router.js - Cashier → Sales workspace: searches and sells
README.md - Sales workspace → Item search: searches items
- Sales workspace → Cart state: updates cart
- Sales workspace → Payment and checkout: starts checkout
README.md - Sales workspace → Draft invoices: saves drafts
README.md - Sales workspace → Returns interface: starts returns
README.md - Sales workspace → Shift workflow: manages shifts
README.md - Cashier → Customer display: opens display
- Offline worker client → Offline state: reads state
POS/src/utils/offline/workerClient.js - Offline worker → Offline state: updates state
- Offline worker → Invoice processing: queues invoices for sync
- Payment and checkout → Invoice processing: submits invoice
- Returns interface → Return processing: requests return
- Invoice processing → Credit sales: uses credit processing
pos_next/api/invoices.py - Invoice processing → Return processing: uses return helpers
pos_next/api/invoices.py - Invoice processing → Coupon rules: checks coupon rules
pos_next/api/invoices.py - Invoice processing → Wallet transactions: uses wallet transactions
pos_next/api/invoices.py - Wallet transactions → Wallet services: gets wallet service
pos_next/pos_next/doctype/wallet_transaction/wallet_transaction.py - Wallet transactions → ERPNext accounting and stock: posts ledger entries
pos_next/pos_next/doctype/wallet_transaction/wallet_transaction.py - Pricing rules → ERPNext accounting and stock: extends pricing rules
pos_next/overrides/pricing_rule.py