mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Update files for 6.0.0-alpha.1
This commit is contained in:
@@ -299,7 +299,7 @@ class AccountUpdateService
|
||||
$openingBalanceDate = $data['opening_balance_date'];
|
||||
|
||||
// if liability, make sure the amount is positive for a credit, and negative for a debit.
|
||||
if($this->isLiability($account)) {
|
||||
if ($this->isLiability($account)) {
|
||||
$openingBalance = 'credit' === $data['liability_direction'] ? app('steam')->positive($openingBalance) : app('steam')->negative($openingBalance);
|
||||
}
|
||||
|
||||
@@ -311,7 +311,7 @@ class AccountUpdateService
|
||||
}
|
||||
}
|
||||
// if cannot have an opening balance, delete it.
|
||||
if(!in_array($type->type, $this->canHaveOpeningBalance, true)) {
|
||||
if (!in_array($type->type, $this->canHaveOpeningBalance, true)) {
|
||||
$this->deleteOBGroup($account);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user