diff --git a/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php b/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php index 81097dd552..dafa9c5b25 100644 --- a/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php +++ b/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php @@ -113,7 +113,7 @@ class ChartJsAccountChartGenerator implements AccountChartGenerator 'data' => [], ]; $current = clone $start; - $range = Steam::balanceInRange($account, $start, $end); + $range = Steam::balanceInRange($account, $start, clone $end); $previous = array_values($range)[0]; while ($current <= $end) { $format = $current->format('Y-m-d');