Finance

Books written by the till, not typed afterwards.

AgenX keeps its own double-entry ledger. Sales, receipts and refunds post to it as they happen, and the VAT position is read from it.

Book a demoWe reply within 24 hours
Profit and loss on demo data: revenue, cost of goods sold and gross profit in AEDDemo data
Profit and loss: revenue, cost of goods sold and gross profit in AED.
VAT position on demo data: output VAT, input VAT and net VAT payable in AEDDemo data
VAT position: output VAT, input VAT and net payable in AED.

Corrections are reversals, never edits

One module writes the ledger. It inserts entries and, to correct a mistake, posts a reversing entry and marks the original reversed. Nothing in the application edits or deletes a posted line.

src/lib/accounting.ts:250, :272, :355

Entries must balance

A journal whose debits and credits differ is refused, and a sale is split into net, VAT and total so the parts always add up.

src/lib/accounting.ts · src/lib/sale-journal.ts

Live profit and loss

The P&L is read from the ledger for the month, the day or the year, with food cost and prime cost against their targets.

public/static/pages/finance.js · src/routes/finance.ts

VAT position

Output and input VAT at 5% are read from the ledger, branch by branch or company-wide.

src/routes/finance.ts · /finance/vat/live

Payables, receivables, bank

Accounts payable, accounts receivable and bank reconciliation are tabs of the same screen.

public/static/pages/finance.js

Closing a period needs a fresh code

Closing a period asks for a fresh authenticator code, as do paying a supplier bill and approving payroll.

src/routes/finance.ts · src/lib/jwt.ts:38
Book a demoWe reply within 24 hours