James Cole
2024-03-03 10:13:49 +01:00
parent af48548e81
commit bf7f4f9887

View File

@@ -75,6 +75,7 @@ class ReconcileController extends Controller
$clearedAmount = '0'; $clearedAmount = '0';
$route = ''; $route = '';
if (null === $start && null === $end) { if (null === $start && null === $end) {
throw new FireflyException('Invalid dates submitted.'); throw new FireflyException('Invalid dates submitted.');
} }
@@ -176,6 +177,7 @@ class ReconcileController extends Controller
} }
$startDate = clone $start; $startDate = clone $start;
$startDate->subDay(); $startDate->subDay();
$end->endOfDay();
$currency = $this->accountRepos->getAccountCurrency($account) ?? app('amount')->getDefaultCurrency(); $currency = $this->accountRepos->getAccountCurrency($account) ?? app('amount')->getDefaultCurrency();
$startBalance = app('steam')->bcround(app('steam')->balance($account, $startDate), $currency->decimal_places); $startBalance = app('steam')->bcround(app('steam')->balance($account, $startDate), $currency->decimal_places);