Files
sure/app/models
LPW a91a4397e9 Simplefin liabilities recording fix (#410)
* Add tests and logic for Simplefin account balance normalization

- Introduced `SimplefinAccountProcessorTest` to verify balance normalization logic.
- Updated `SimplefinAccount::Processor` to invert negative balances for liability accounts (credit cards and loans) while keeping asset balances unchanged.
- Added comments to clarify balance conventions and sign normalization rules.

* Refactor balances-only sync logic and improve tests for edge cases

- Updated `SimplefinItem::Importer` and `SimplefinItem::Syncer` to ensure `last_synced_at` remains nil during balances-only runs, preserving chunked-history behavior for full syncs.
- Introduced additional comments to clarify balances-only implications and syncing logic.
- Added test case in `SimplefinAccountProcessorTest` to verify correct handling of overpayment for credit card liabilities.
- Refined balance normalization in `SimplefinAccount::Processor` to always invert liability balances for consistency.

---------

Co-authored-by: Josh Waldrep <joshua.waldrep5+github@gmail.com>
2025-12-03 18:40:37 +01:00
..
2025-10-28 19:32:27 +01:00
2025-03-28 13:08:22 -04:00
2025-10-22 19:14:03 +02:00
2025-11-24 17:54:18 +01:00
2025-09-24 00:19:51 +02:00
2025-11-25 20:21:29 +01:00
2025-11-27 15:24:34 +01:00
2025-10-28 19:32:27 +01:00
2025-10-28 19:32:27 +01:00
2025-10-28 19:32:27 +01:00
2025-10-24 19:39:42 +02:00
2024-10-18 11:26:58 -05:00
2025-10-28 19:32:27 +01:00
2025-11-23 20:43:55 +05:30
2024-10-18 11:26:58 -05:00
2025-11-15 19:00:52 +01:00
2024-11-08 09:58:35 -06:00
2024-08-23 10:06:24 -04:00
2025-05-23 18:58:22 -04:00
2025-11-25 20:21:29 +01:00
2024-08-23 09:33:42 -04:00
2025-11-01 09:12:42 +01:00
2025-10-28 19:32:27 +01:00
2025-11-22 02:14:29 +01:00
2025-11-25 20:21:29 +01:00
2025-03-28 13:08:22 -04:00
2025-07-10 18:40:38 -04:00