Update files for 6.0.0-alpha.1

This commit is contained in:
James Cole
2023-01-15 15:47:25 +01:00
parent e135d01655
commit 973c175213
508 changed files with 2186 additions and 1904 deletions

View File

@@ -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);
}
}