投資可能額の計算と相談データを追加 (#88) - #92
Open
hide10 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要\n\n預金・現金から生活防衛資金、計画期間内のライフイベント支出、追加確保額を差し引き、投資可能額を計算します。\n\n## 計算\n\n投資可能額 = max(0, 預金・現金 - 月間生活費×防衛月数 - 予定支出 - 追加確保額)\n\n- 月間生活費は設定値を優先し、0なら直近6か月の実績平均\n- 年単位のライフイベントは対象年の全額を保守的に確保\n- 不足時は投資可能額を0として不足額を表示\n- AI相談用プロンプトへ計算根拠と投資可能額を追加\n\n## テスト・確認\n\n- 新規受け入れテスト: 8 passed\n- 非ブラウザ全体: 329 passed\n- ブラウザE2E: 9 passed\n- ruff: passed\n- 実データのダッシュボードと設定画面をヘッドレスChromeで確認\n\nCloses #88