feat: add opt-in liability balance sign display
GU
21d ago+250+250+012345678901234567890123456789-13-13-01234567890123456789
Summary
- Adds a per-user opt-in setting to display individual liability balances with a negative sign.
- Default behavior remains unchanged; this is display-only and does not change accounting, persisted balances, aggregate liability totals, flows, or canonical/history/API values.
- Includes account, dashboard, activity, reconciliation, chart, and loan balance surfaces; loan schedule movement columns remain unchanged.
Verification
- Focused suite: 167 runs, 633 assertions, 0 failures/errors.
- Full Rails suite: 10,509 runs, 44,347 assertions, 0 failures/errors, 33 skips.
- System suite: 208 runs, 1,049 assertions, 0 failures/errors/skips.
- RuboCop: 2,842 files clean; ERB lint: 746 clean; Biome: 135 clean.
- Brakeman: 0 errors, 0 security warnings (9 ignored).
Independent review returned PASS for exact head 751e7b418648e45b1ebdd1f0bddd42c2f119dcd7.
Summary by CodeRabbit
- New Features
- Added a preference to display individual liability account balances as negative. Credits and overpayments also appear with the opposite sign.
- Updates
- The preference applies to liability balances in account lists, dashboards, loan details and schedules, balance reconciliations, account balance charts, and finance connection settings.
- Asset balances and gains retain their existing signs. Group totals, historical charts, reports, cash flows, and API values are unchanged.