Skip to content

Finance Phase A In-progress

Finance is the merchant's books. It tracks where money lives (cash drawers, bank, QR, mobile-POS accounts), records every money movement as a balanced double-entry voucher, and classifies income and expense by category - most of it posted automatically when a sale is paid, a purchase order is received, or stock moves.

Status: In-progress (P2 Partner ledger & P&L) · Owner: Việt Võ · Phase: 1-2 · Last reviewed: 2026-06-11

ChainLink
RoadmapPhase 2 - By Month
EpicBANA-1324 - Partner ledger + accounts + P&L
URDURD - new increment: LDG
PRDPRD-EVT-001 Event-driven posting · PRD-LDG-001 Partner ledger & P&L (catalogue)
Dev docs@nx/finance
Delivery logTraceability matrix

1. Identity

PropertyValue
Module IDCORE-12
TierCore
StatusIn-progress
PhaseP1 (auto-posting) shipped · P2 (manual vouchers, accounts UI, transfers) emerging
PriorityMEDIUM
Primary usersOwner · Accountant · Manager

2. Purpose & Scope

IncludedExcluded
Money accounts / wallets (Cash, Bank, QR, Mobile-POS)Payment gateway processing (Payment module)
Double-entry vouchers (receipt, payment, transfer, adjustment)Tax invoice issuance (Invoice module)
Income / expense category hierarchyStock quantity & costing math (Inventory module)
Automatic posting from sales, purchases, stock movementsBudgeting, P&L statements, cash-flow forecasting (future)
Voucher void by balanced reversalRecurring / scheduled expenses (future)
Per-merchant account isolationReceipt-image capture / OCR (future)

3. Capabilities

CapabilityWhat the user can do
Money accountsHold balances across cash drawers, bank, QR, and mobile-POS accounts; one default account per type
Auto income on sale paidSale revenue books a receipt voucher automatically, no manual entry
Auto purchase postingReceiving a purchase order books a payment voucher to the vendor automatically
Auto stock postingCost of goods sold and stock adjustments post to internal control accounts automatically
CategoriesClassify money movements with 14 seeded categories plus custom merchant categories
Manual vouchersDraft, approve, issue, and void vouchers by hand
Account transfersMove money between accounts as a balanced transfer voucher
Shift cash movementsRecord pay-ins, pay-outs, and safe drops against a POS session

4. Module Dependencies

Depends onWhy
PaymentA successful payment triggers an automatic receipt voucher for the sale
InventoryReceiving a purchase order, selling stock, and stock adjustments trigger automatic vouchers
Commerce (Merchant)A new merchant gets its default accounts reconciled automatically
ReportsConsumes finance data for financial analytics

5. Backend Packages

Implementation detail lives in the developer docs - this section only maps the module to the service that powers it.

PackageRoleDeveloper docs
@nx/financeDouble-entry bookkeeping engine: accounts, vouchers, ledger lines, categories, event-driven postingfinance

Engineering Mapping (Feature ⇄ Package)

The horizontal axis of the Feature Spine - each business feature (<AREA> in the URD) maps to its engineering home. Reciprocal: the package docs link back here.

FeatureDev packageStatus
WAL Accounts@nx/financeIn-progress
VCH Vouchers & Posting@nx/financeIn-progress
EVT Event-Driven Posting@nx/financeBuilt
TXN Ledger Lines@nx/financeBuilt
CAT Categories@nx/financeBuilt
LDG Partner ledger & P&L@nx/financePlanned

6. Key User Flows

Automatic receipt on a paid sale

Manual transfer between accounts

7. Roles & Permissions

RoleCanCannot
OwnerView and manage own merchants' accounts, vouchers, and categoriesSee other organizers' merchants
Accountant / ManagerRecord vouchers, transfers, and classify movements within their merchantManage payment-gateway credentials
Super Admin / AdminSee accounts across all merchants-

Account visibility is merchant-scoped: non-admins only see accounts of merchants they are granted. See the finance integration notes for the authorization contract.

8. Status & Roadmap

PhaseCapabilities
P1Automatic posting from sale payments, purchase-order receipts, and stock movements; 14 seeded categories; default-account reconciliation on new merchant
P2Account management UI, manual draft→issue voucher lifecycle, account transfers, custom categories
P3Shift cash movements (pay-in / pay-out / safe drop), budgeting, P&L, cash-flow forecasting

Proprietary and Confidential. Unauthorized copying, distribution, or use of this software is strictly prohibited.