This commit is contained in:
hackerESQ
2025-08-21 20:54:14 -05:00
parent fc5cc1fee2
commit e427d5802c
8 changed files with 28 additions and 33 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class DailyChangeTest extends TestCase
$daily_change = DailyChange::withDailyPerformance()
->portfolio($this->portfolio->id)
->whereDate('daily_change.date', '=', $sale_transaction->date->copy()->nextWeekday())
->getDailyPerformance()
// ->withMultipleDailyPerformance()
->first();
$realized_gain = ($sale_transaction->sale_price - $sale_transaction->cost_basis) * $sale_transaction->quantity;