← Planning Hub
Ledger Reports
Reports the troop's accountant (and the troop itself) will want at year-end. The Ledger already captures the entries; this plans the views and exports built on top.
Build order: (1) Year-end Income/Expense + CSV Export covers ~90% of accountant needs. (2) Donor Summary before January for IRS-required ≥$250 acknowledgment letters. (3) Receipts Bundle as year-end nice-to-have.
Bank Balance vs Cash on Hand Shipped 2026-05-15
Replaces the single Net Balance card with two: Bank Balance (everything except
paymentMethod === 'cash') and Cash on Hand (cash payments not yet deposited). New entry type transfer with transferDirection = cash-to-bank | bank-to-cash moves money between buckets without counting as income or expense. Cash on Hand should be checked after first load; backdate a transfer for any cash already deposited.
Report 1 — Year-end Income & Expense by Category
Audience: accountant (Form 990 prep), troop committee (board reporting).
UI:
Controls: date range picker with presets (This Year / Last Year / This Fiscal / Last Fiscal / Custom). Charter Year (Sep–Aug) vs Calendar Year toggle. Category + event filters.
Sections: Headline totals · Income by Category · Expense by Category · By Event · Detail list.
Print styling: clean, no nav, troop name + range in header.
Form 990 mapping cheat-sheet printed at the bottom (Dues → line 9, Donations → line 1, Scholarships → line 1 grants, etc.).
UI:
/dashboard/ledger-report.html — separate from Ledger so it prints clean.Controls: date range picker with presets (This Year / Last Year / This Fiscal / Last Fiscal / Custom). Charter Year (Sep–Aug) vs Calendar Year toggle. Category + event filters.
Sections: Headline totals · Income by Category · Expense by Category · By Event · Detail list.
Print styling: clean, no nav, troop name + range in header.
Form 990 mapping cheat-sheet printed at the bottom (Dues → line 9, Donations → line 1, Scholarships → line 1 grants, etc.).
Report 2 — Donor Summary
Audience: treasurer (acknowledgment letters), accountant (Schedule B if revenue triggers it).
Logic: Walk all
Columns: Donor · Linked? · Total · # Gifts · Largest Gift · Letter Required? · Address on file?
Letter generator (stretch): "Generate Letters" → printable HTML with
Logic: Walk all
income entries with category === 'donation'. Group by payerUserId, then payerTrailmanId, then by payerName for unlinked entries.Columns: Donor · Linked? · Total · # Gifts · Largest Gift · Letter Required? · Address on file?
Letter generator (stretch): "Generate Letters" → printable HTML with
page-break-after per donor whose total ≥ $250. Template: troop name, EIN, donor name + address, total contributed, "no goods or services were provided in exchange," signature line.
Note on dues vs donations: member dues are NOT tax-deductible (fee for membership). Donations ARE. Keep separate. If a member's "donation" is really paying dues, recategorize before running the report.
Report 3 — CSV Export
Audience: accountant feeding QuickBooks / Excel / their own tool.
UI: "Export CSV" button on the main Ledger page (respects current filters) AND on the year-end report (uses report's date range).
Columns: date · type · category · description · amount · payer_payee_name · linked_member_name · linked_member_email · linked_trailman_name · event_name · event_date · payment_method · check_number · bank_cleared · bank_cleared_date · notes · receipt_url · created_at · created_by.
Format: standard CSV with quoting on free-text, ISO dates, plain numeric amounts,
Filename:
UI: "Export CSV" button on the main Ledger page (respects current filters) AND on the year-end report (uses report's date range).
Columns: date · type · category · description · amount · payer_payee_name · linked_member_name · linked_member_email · linked_trailman_name · event_name · event_date · payment_method · check_number · bank_cleared · bank_cleared_date · notes · receipt_url · created_at · created_by.
Format: standard CSV with quoting on free-text, ISO dates, plain numeric amounts,
TRUE/FALSE booleans. UTF-8 with BOM so Excel opens correctly.Filename:
ledger_YYYY-MM-DD_to_YYYY-MM-DD.csv.
Report 4 — Receipts Bundle (nice-to-have)
Audience: accountant, audit trail.
UI: "Download Receipts (ZIP)" button on the year-end report.
Approach: Client-side JSZip first (fetch each
Filename pattern inside zip:
Manifest: include
UI: "Download Receipts (ZIP)" button on the year-end report.
Approach: Client-side JSZip first (fetch each
receiptUrl, bundle, no backend needed). Switch to a Cloud Function if slow.Filename pattern inside zip:
YYYY-MM-DD_category_description_<entryId>.<ext>Manifest: include
manifest.csv inside the zip mirroring the CSV export columns so the accountant can cross-reference.
Decisions (already resolved)
✓
Fiscal year — adjustable
Reports offer Charter Year (Sep 1 – Aug 31) and Calendar Year (Jan 1 – Dec 31) toggle with presets for both.
✓
Org info — admin-editable
Stored at
org_settings/main. Defaults: GPC · 10221 Ella Lee Ln, Houston, TX 77042-2939 · EIN 74-1216230 · 713.781.7615.✓
Mailing addresses — on profiles
Optional everywhere except donor letters. Letter generator skips no-address donors + lists them so treasurer can chase.
✓
CSV format — generic
Standard columns, ISO dates, plain numerics, UTF-8 with BOM. No QuickBooks IIF / accountant-specific.
✓
Restricted donations — yes
Added
restricted (bool) and restrictedPurpose (string) to ledger entries. Surfaced in donor reports and 990-prep cheat-sheet.Data already in place
- All ledger entries have
date,type,category,amount,description,payerName,payerUserId,payerTrailmanId,eventId,paymentMethod,checkNumber,bankCleared,bankClearedDate,notes,receiptUrl,receiptPath,receiptName,createdAt,createdBy,updatedAt,updatedBy. - Categories cover: dues, charter (TLUSA), donation, scholarship, troop, meeting, campout, trail, service, fundraiser, supplies, awards, curriculum, fees, reimbursement, website, other.
- No schema changes required for Reports 1 + 3. Reports 2 + 4 may need an address field on user profiles (Report 2) and nothing extra (Report 4).
Note on status tags: The "Shipped" / "Pending" tags on each Report above were inferred from this admin's read of the codebase, not from the original build plan (which described the work without marking completion). Verify against the live
/dashboard/ledger-report.html page if anything looks off.