James Cole 2024-03-03 10:13:49 +01:00
parent af48548e81
commit bf7f4f9887
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

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