mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
This commit is contained in:
parent
a1a8968e98
commit
7bc30192ca
@ -171,6 +171,8 @@ trait AugumentData
|
|||||||
|
|
||||||
/** @var BudgetLimitRepositoryInterface $blRepository */
|
/** @var BudgetLimitRepositoryInterface $blRepository */
|
||||||
$blRepository = app(BudgetLimitRepositoryInterface::class);
|
$blRepository = app(BudgetLimitRepositoryInterface::class);
|
||||||
|
|
||||||
|
$end->endOfMonth();
|
||||||
// properties for cache
|
// properties for cache
|
||||||
$cache = new CacheProperties();
|
$cache = new CacheProperties();
|
||||||
$cache->addProperty($start);
|
$cache->addProperty($start);
|
||||||
|
@ -117,6 +117,8 @@ class AccountBalanceCalculator
|
|||||||
$foreignCurrency = (int) $row->foreign_currency_id;
|
$foreignCurrency = (int) $row->foreign_currency_id;
|
||||||
$sumAmount = (string) $row->sum_amount;
|
$sumAmount = (string) $row->sum_amount;
|
||||||
$sumForeignAmount = (string) $row->sum_foreign_amount;
|
$sumForeignAmount = (string) $row->sum_foreign_amount;
|
||||||
|
$sumAmount = '' === $sumAmount ? '0' : $sumAmount;
|
||||||
|
$sumForeignAmount = '' === $sumForeignAmount ? '0' : $sumForeignAmount;
|
||||||
|
|
||||||
// first create for normal currency:
|
// first create for normal currency:
|
||||||
$entry = $this->getAccountBalanceByAccount($account, $transactionCurrency);
|
$entry = $this->getAccountBalanceByAccount($account, $transactionCurrency);
|
||||||
|
Loading…
Reference in New Issue
Block a user