feat(plan): devreden borç planın parçası, borçlu ayda %45 kuralı

- Devreden borç: elle girilen ya da dönem başından önceki son ay sonu ölçümü
- Borçlu ay: harcanabilir = gelir × oran (vars. %45), kalan borca, artan birikime
- Birikim hedefi ve Kakeibo devri borçlu ayda uygulanmaz; kapanış devir üretmez
- Plan düzenleme ve sihirbazda devreden borç alanı + oran; canlı önizleme
- Plan'daki eski borç bölümü ve taksit önerisi kaldırıldı (veri yerinde)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 06:27:12 +03:00
parent d3e012f50b
commit f0d285a9ba
34 changed files with 1376 additions and 462 deletions
+11
View File
@@ -87,6 +87,17 @@ async fn summary_computes_spendable_with_carryovers() {
"carryover_surplus": 20_000,
// 4.800.000 − 1.545.000 − 500.000 − 100.000 + 20.000
"spendable": 2_675_000,
// Banka borcu yok → normal Kakeibo (docs/KAKEIBO_PANEL_ISTEKLERI.md A)
"carried_debt": 0,
"carried_debt_source": null,
"carried_debt_date": null,
"carried_debt_auto": null,
"debt_mode": false,
"spendable_rate_bp": 4500,
"debt_payment": 0,
"debt_to_savings": 0,
"debt_fixed_too_high": false,
"closing_debt_target": null,
"budget_total": 0,
"unallocated": 2_675_000,
"spent_total": 0,