mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Some generic code refactoring.
This commit is contained in:
@@ -229,7 +229,7 @@ class AccountTransformer extends AbstractTransformer
|
||||
{
|
||||
$openingBalance = null;
|
||||
$openingBalanceDate = null;
|
||||
if (\in_array($accountType, ['asset', 'liabilities'], true)) {
|
||||
if (in_array($accountType, ['asset', 'liabilities'], true)) {
|
||||
$amount = $this->repository->getOpeningBalanceAmount($account);
|
||||
$openingBalance = null === $amount ? null : round($amount, $decimalPlaces);
|
||||
$openingBalanceDate = $this->repository->getOpeningBalanceDate($account);
|
||||
|
||||
Reference in New Issue
Block a user