You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/gemini-brainstorm Investment/brokerage account'lar (scheme: INVESTMENT) cash flow hesaplamalarını bozuyor. T-bill/bond account'larda Plaid transaction olarak sadece deposit/withdrawal/interest/fee gönderiyor — asıl T-bill buy/sell transaction'ları yok. Bu yüzden cash flow'da devasa inflow/outflow ($74M gibi) ve büyük adjustment'lar çıkıyor. Gerçek cash movement değil bunlar.
Yapılması gereken:
1. INVESTMENT scheme hesapları cash flow inflow/outflow hesaplamalarından çıkar
2. Ama MMF (money market fund) hesaplar cash-equivalent — bunlar KALMALI
3. CashForecastService'de hangi account'ların cash flow'a dahil olacağını belirleyen mantık nerede, nasıl değişmeli?
4. DailyPosition/HistoricalPosition'da investment account'lar opening/closing balance'a dahil mi, sadece transaction'ları mı çıkarıyoruz yoksa balance'ı da mı?
5. UI'da investment account'lar "Non-Cash Investments" gibi ayrı bir section'da mı gösterilmeli?
6. Mevcut liquidity_included flag ile ilişki ne? Bu flag yeterli mi yoksa yeni bir flag mı lazım (cash_flow_included gibi)?
Gerçek veri:
- Company 4 (April) — 4 investment account: 139 (Liquid Treasuries, $5.1M), 140 (U.S. Treasuries, $10.1M), 141 (Commercial Paper, $5.1M), 142 (MMF, $5.7K)
- 139, 140, 141: T-bill buy/sell transaction'ları Plaid'de YOK, balance reconstruction imkansız, cash flow'dan ÇIKMALI
- 142 (MMF): transaction'lar doğru (deposit/withdrawal/dividend/fee), reconstruction ÇALIŞIYOR, cash flow'da KALMALI
- Cash flow şu anda May'25'te +$74M inflow / -$74M outflow gösteriyor — bunlar T-bill deposit'leri, gerçek cash değil
Referans dosyalar:
- app/services/forecast/cash_forecast_service.rb — lines 779-797 zaten investment holding exclusion var, genişletilecek
- app/models/account_type.rb — investment_scheme? metodu
- app/models/bank_account.rb — account_type association
- CashForecastService'de liquid_positions, fetch_current_positions, actuals hesaplaması
Technical perspective.