Backend: GET /api/organizations/{orgId}/search/transactions
- Text search on transaction description (case-insensitive)
- Tx# / sequence ID lookup
- Amount range (min/max in cents, matches absolute row amounts)
- Date range (from/to)
- Optional account filter
- Returns transactions with nested rows, same format as General Journal
- Results ordered by date descending, capped at 500
Frontend: SearchTab component
- Search bar with description field (autofocus, Enter to search),
Tx# field, amount min/max, date from/to pickers, Search button
- Results displayed in General Journal format: transaction headers
with account rows, clickable for transaction detail dialog
- "N transactions found" with query echo
- Empty state before first search, "No transactions found" after
- Same visual style as General Journal (badges, colSpan, monospace)
Search tab now enabled in the Inspect Ledgers tab bar.
Made-with: Cursor
General Journal: account rows now use colSpan=2 to merge the Date and
Description columns, so the badge+account name starts under the
transaction date rather than being deeply indented under the description.
Creates a more natural visual hierarchy.
Account Ledger: fixed prior balance calculation for result accounts
(Income/Cost) — now computed from fiscal year start to period start,
matching the General Journal fix. Balance accounts (Asset/Debt) still
use all-time cumulative.
Made-with: Cursor
- Fixed result account (Income/Cost) running balance: now computed from
fiscal year start to period start, not from dawn of time. Balance
accounts (Asset/Debt) still use all-time cumulative as before.
- Narrowed date column from 145px to 130px
- Right-aligned account type badge (pr: 4px) so it acts as a bullet
point for the account name (pl: 4px), creating visual continuity
between badge and account name across the column boundary
Made-with: Cursor
- Added per-account running balance column: each row shows the account's
balance after this specific row's delta is applied. Balance accounts
(Asset/Debt) start from dawn-of-time prior balance; result accounts
(Income/Cost) start from fiscal year start.
- Removed collapse/expand on transaction headers — they're just headers,
not collapsible parents. Eliminates whitespace issue.
- Widened date column to 145px with whiteSpace: nowrap to prevent
date wrapping across lines.
- Simplified component by removing all collapse state and animation code.
Made-with: Cursor
AccountNameResolver strips [LOC] prefix and looks up English display
names from a static dictionary matching the v5 .resx resource file.
Applied to all API endpoints that return account names:
- Inspect ledger (account ledger + general journal)
- Accounts tree dropdown
- Tree report endpoints (balance sheet + P&L)
- Account list endpoint
Examples: [LOC]Asset_BitcoinHot → "Bitcoin Hot Wallet",
[LOC]Cost_ForexLosses → "Forex Capital Losses",
[LOC]Debt_Equity → "Equity"
Non-[LOC] names (user-created accounts) pass through unchanged.
Future: load per-language from database for i18n support.
Made-with: Cursor
- Checkbox "own transactions only" no longer disappears when checked:
group state tracked from account selection, not from API response
- Reset ownOnly to false when switching accounts
- Currency code (SEK, EUR) shown instead of org name in ledger header
- Organization list and detail API endpoints now include currencyCode
resolved from the Currencies table
Made-with: Cursor
Backend: inspect/ledger endpoint now supports group queries:
- Selecting a parent account returns merged transactions from all
descendants, sorted chronologically
- ?ownOnly=true filters to just the selected account's own transactions
- Response includes isGroup, groupAccountCount, accountName per entry
Frontend improvements:
- Account dropdown shows tree indentation matching account hierarchy
- Prior balance row at top of ledger, closing balance at bottom
- Period totals row shows only debit/credit sums (no balance)
- Account column appears automatically for group views
- Checkbox "Show only this account's own transactions (exclude
sub-accounts)" appears when viewing a parent account with children
- Currency label above table
- Entries sorted by date within group view
Made-with: Cursor
New reusable AccountTreeGrid component:
- Hierarchical tree with expand/collapse per node
- Σ prefix on aggregated parent values when collapsed
- Parent nodes show sum of all descendants when collapsed
- Own-value shown when expanded (for nodes with direct amounts)
- Column totals invariant: same regardless of expand/collapse state
- Folder/document icons matching v5 visual language
- CSS transitions on hover and state changes
- CSV download support per section
New backend endpoints:
- GET /api/organizations/{orgId}/reports/balance-sheet-tree?year=N
Returns accounts with quarterly columns: Start, Q1, Q2, Q3, Q4, Current
- GET /api/organizations/{orgId}/reports/profit-loss-tree?year=N
Returns accounts with: Last Year, Q1, Q2, Q3, Q4, YTD
Rebuilt pages using tree grid:
- Balance Sheet: Assets and Liabilities sections with quarterly breakdown
- Profit & Loss: Revenue and Expenses sections with quarterly breakdown,
net result chip, CSV download
Modeled after v5 Open Ledgers treegrid functionality.
Made-with: Cursor
InvoiceEndpoints.cs called SetExpenseClaimAttested instead of
SetInboundInvoiceAttested — a copy-paste bug that would have updated
the wrong table. Added the missing SetInboundInvoiceAttested method
to ApArRepository.
Found by adversarial code review.
Made-with: Cursor
The auth/me endpoint was excluded from AuthMiddleware (as all /api/auth/
paths are), so dev-mode auto-auth never ran for it. Fixed by checking
DevMode config directly in the /me handler.
Also removed the aggressive window.location redirect from the API client
— the React router handles 401s via the RequireAuth wrapper instead.
Made-with: Cursor