feat(finance): statutory financial statements (#98)#101
Merged
Conversation
Trial Balance, Income & Expenditure, Balance Sheet, and Receipts & Payments — derived purely off the ledger (design §8). The statutory deliverable (Rule 62 MCS Rules) that lets the app be a society's system of record. - shared/statements.ts (pure, unit-tested): trialBalance (nets to zero), incomeExpenditure (accrual; surplus + mutual/taxable split for ITR-5), balanceSheet (assets vs liabilities+funds+current surplus; balances by construction), receiptsAndPayments (cash basis via contra legs of cash/bank entries, opening+closing). - API (reports.ts, ADMIN): /reports/trial-balance, /income-expenditure, /balance-sheet, /receipts-payments — all ?fromDate&toDate. accountBalances aggregates journal_lines over the entry-date window. - Tests on a genuinely balanced mini-ledger: TB nets to zero, BS balances, I&E surplus + mutual split, R&P separates receipts/payments; + route auth tests. Suite 349 green. Web reports.tsx rendering + drill-down land in the M3.5 admin-UI pass. Maharashtra Rule-62-strict formatting deferred (generic mode first, design §9.6).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
M3.5 · Task #98 — Statutory statements (backend)
The statutory deliverable — Trial Balance, Income & Expenditure, Balance Sheet, Receipts & Payments — derived purely off the general ledger (design §8). This is the single biggest gap vs benchmark apps and the reason the app can be a society's system of record (Rule 62, MCS Rules 1961).
Domain (
shared/statements.ts, pure + unit-tested)API (
/reports/*, ADMIN,?fromDate&toDate)/trial-balance,/income-expenditure,/balance-sheet,/receipts-payments.accountBalancesaggregatesjournal_linesover the entry-date window.Acceptance
Tests / notes
Unit tests on a genuinely balanced ledger (TB=0, BS balances, I&E surplus + split, R&P separation) + route auth tests. Suite 349 green. Web
reports.tsxrendering + account drill-down land in the M3.5 admin-UI pass; Maharashtra Rule-62-strict formatting deferred (generic first, design §9.6). No schema change.