soky srm
6ebe8da928
Add investment tracking to expenses (#381)
* Add investment tracking to expenses
Add new sections to dashboard and reporting around investments.
* Create investment-integration-assessment.md
* Delete .claude/settings.local.json
Signed-off-by: soky srm <sokysrm@gmail.com>
* Category trades
* Simplify
* Simplification and test fixes
* FIX merge
* Update views
* Update 20251125141213_add_category_to_trades.rb
* FIX tests
* FIX statements and account status
* cleanup
* Add default cat for csv imports
* Delete docs/roadmap/investment-integration-assessment.md
Signed-off-by: soky srm <sokysrm@gmail.com>
* Update trend calculation
Use already existing column cost basis for trend calculation
- Current value: qty * price (already stored as amount)
- Cost basis total: qty * cost_basis
- Unrealized gain: current value - cost basis total
Fixes N+1 query also
---------
Signed-off-by: soky srm <sokysrm@gmail.com>
2026-01-09 13:03:40 +01:00
..
2026-01-07 15:59:04 +01:00
2025-10-28 19:32:27 +01:00
2026-01-08 18:23:34 +01:00
2025-11-01 10:15:33 +01:00
2026-01-07 15:59:04 +01:00
2026-01-07 15:59:04 +01:00
2026-01-07 15:59:04 +01:00
2026-01-09 11:54:38 +01:00
2025-10-22 19:14:03 +02:00
2025-11-29 13:31:08 +01:00
2025-11-29 13:31:08 +01:00
2025-11-30 17:58:29 +01:00
2025-12-07 18:11:34 +01:00
2025-11-24 17:54:18 +01:00
2026-01-07 20:18:17 +01:00
2026-01-09 13:03:40 +01:00
2025-09-24 00:19:51 +02:00
2026-01-09 13:03:40 +01:00
2026-01-09 13:03:40 +01:00
2025-11-25 20:21:29 +01:00
2025-11-27 15:24:34 +01:00
2025-11-28 20:42:57 +01:00
2025-10-28 19:32:27 +01:00
2025-12-19 23:24:48 +01:00
2026-01-07 15:59:04 +01:00
2025-12-17 16:03:05 +01:00
2025-12-11 00:55:55 +01:00
2026-01-07 16:16:01 +01:00
2026-01-05 22:11:47 +01:00
2026-01-07 16:15:28 +01:00
2026-01-05 22:11:47 +01:00
2026-01-08 11:44:38 +01:00
2025-10-22 16:02:50 +02:00
2026-01-09 13:03:40 +01:00
2025-12-30 19:06:40 +01:00
2026-01-07 15:59:04 +01:00
2026-01-08 18:23:34 +01:00
2025-10-24 12:04:19 +02:00
2025-12-24 00:15:53 +01:00
2025-12-11 00:14:14 +01:00
2025-12-22 20:41:37 +01:00
2026-01-09 13:03:40 +01:00
2025-10-24 12:04:19 +02:00
2026-01-07 15:59:04 +01:00
2026-01-07 15:59:04 +01:00
2026-01-07 15:59:04 +01:00
2025-11-29 13:31:08 +01:00
2025-11-29 13:31:08 +01:00
2025-10-28 19:32:27 +01:00
2025-09-24 00:19:51 +02:00
2026-01-09 13:03:40 +01:00
2026-01-09 13:03:40 +01:00
2025-12-17 18:37:35 +01:00
2026-01-09 13:03:40 +01:00
2026-01-09 13:03:40 +01:00
2025-12-12 16:05:53 +01:00
2025-11-22 02:15:20 +01:00
2025-11-28 20:42:57 +01:00
2025-11-25 20:21:29 +01:00
2025-11-20 19:50:22 +01:00
2025-11-01 09:12:42 +01:00
2025-12-17 18:37:35 +01:00
2025-09-24 00:19:51 +02:00
2025-10-25 22:23:28 +02:00
2025-11-27 10:59:33 +01:00
2025-10-28 19:32:27 +01:00
2025-11-22 02:14:29 +01:00
2026-01-07 15:59:04 +01:00
2025-12-17 16:03:05 +01:00
2025-12-07 13:20:54 +01:00
2025-12-07 16:30:02 +01:00
2026-01-08 15:20:14 +01:00
2025-11-20 08:31:03 +01:00
2025-12-07 18:11:34 +01:00
2026-01-05 22:11:47 +01:00
2026-01-07 16:15:28 +01:00
2025-11-25 20:21:29 +01:00
2026-01-09 13:03:40 +01:00
2026-01-09 13:03:40 +01:00
2025-12-17 18:37:35 +01:00
2025-12-19 23:24:48 +01:00
2025-12-30 19:06:40 +01:00
2026-01-07 20:17:23 +01:00