feat(finance): aging buckets + cash/bank balance (#100 backend)#104
Merged
Conversation
Backend for the admin finance dashboard (tiles + charts land in the M3.5 admin-UI pass). - shared: agingBucketFor + bucketAging (0-30 / 31-60 / 61-90 / 90+ days past due; not-yet-due counts current, cleared balances skipped) + AGING_BUCKETS. - API GET /reports/aging?asOf= — buckets outstanding per-bill dues, total and per flat (sorted by exposure), for the defaulter report. - /reports/finance now also returns cashBankBalance (ledger 10xx accounts) for the dashboard tile; FinanceReport type + the finance-shape test updated. - Tests: aging bucket boundaries + summation + not-yet-due/cleared handling; /aging route (auth + a two-flat bucketing case). Suite 366 green; web typechecks.
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 #100 — dashboard data (backend)
Backend for the admin finance dashboard. Tiles + income-vs-expense chart render in the consolidated M3.5 admin-UI pass; this PR ships the data + the aging report.
shared):agingBucketFor+bucketAging— 0-30 / 31-60 / 61-90 / 90+ days past due. Not-yet-due counts as current; cleared/credit balances skipped.GET /reports/aging?asOf=— buckets per-bill outstanding dues, total and per flat (sorted by exposure) for the defaulter report./reports/financenow returnscashBankBalance(Σ over ledger10xxaccounts) for the cash+bank tile;FinanceReporttype + finance-shape test updated.Acceptance
/reports/finance,/bills/dues,/reports/aging; React-idiomatic, no direct DOM).Tests
Aging bucket boundaries + summation + not-yet-due/cleared handling;
/agingroute (auth + a two-flat bucketing case). Suite 366 green, web typechecks. No schema change.