mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 20:38:46 +00:00
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user