Files
sure/app/views
LPW fa78e1d292 Improve handling of cost_basis during holding materialization and display (#619)
- Refactored `persist_holdings` to separate and conditionally upsert holdings with and without cost_basis.
- Updated `avg_cost` logic to treat 0 cost_basis as unknown and return nil when cost_basis cannot be determined.
- Modified trend and investment calculation to exclude holdings with unknown cost_basis.
- Adjusted `average_cost` formatting to handle nil values in API responses and views.
- Added comprehensive tests to ensure cost_basis preservation and fallback behavior.
- Localized `unknown` label for display when cost_basis is unavailable.

Co-authored-by: Josh Waldrep <joshua.waldrep5+github@gmail.com>
2026-01-11 23:58:51 +01:00
..
2025-12-09 21:02:23 +01:00
2025-12-19 16:30:21 +01:00
2025-11-24 19:52:34 +01:00
2025-11-24 19:52:34 +01:00
2025-11-24 19:52:34 +01:00
2026-01-05 02:13:12 +01:00
2025-11-24 19:52:34 +01:00
2025-11-24 19:52:34 +01:00
2025-07-18 08:30:00 -04:00
2025-07-18 08:30:00 -04:00
2026-01-11 16:59:52 +01:00
2026-01-08 15:20:14 +01:00
2025-07-18 08:30:00 -04:00
2025-07-18 08:30:00 -04:00
2025-04-11 09:28:00 -05:00
2025-09-24 00:19:51 +02:00
2025-07-18 08:30:00 -04:00