1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00
Maybe/test/models/account
Josh Pigford cf23673003
Fix Account Holding validation and synchronization (#1818)
* Fix Account Holding validation and synchronization

Fixes #1781

- Add comprehensive validations for Account::Holding
- Implement validation to ensure amount matches qty * price
- Update Account::Syncer to include qty and price during synchronization
- Add database constraints for holding attributes and calculations

* Remove database check constraints for Account Holdings

Align with project convention of keeping complex validations in ActiveRecord
- Remove database-level check constraints for quantity, price, and amount
- Maintain database-level null and unique constraints
- Prepare for more flexible validation in the model layer
2025-02-07 10:42:01 -06:00
..
balance_calculator_test.rb Plaid portfolio sync algorithm and calculation improvements (#1526) 2024-12-10 17:41:20 -05:00
entry_test.rb Add scope to filter transactions from active accounts (#1810) 2025-02-05 11:52:44 -06:00
holding_calculator_test.rb Plaid portfolio sync algorithm and calculation improvements (#1526) 2024-12-10 17:41:20 -05:00
holding_test.rb Fix holding avg cost calculation 2024-12-12 15:11:06 -05:00
issue_test.rb Account Issue Model and Resolution Flow + Troubleshooting guides (#1090) 2024-08-16 12:13:48 -04:00
syncer_test.rb Fix Account Holding validation and synchronization (#1818) 2025-02-07 10:42:01 -06:00
trade_test.rb Investment Portfolio Sync (#974) 2024-07-16 09:26:49 -04:00