Temporary reshuffeling to fix API

This commit is contained in:
James Cole
2021-03-06 07:20:49 +01:00
parent 0afebb26e0
commit 1c661a86b6
85 changed files with 684 additions and 296 deletions

View File

@@ -63,7 +63,7 @@ class AccountTransformer extends AbstractTransformer
$fullType = $account->accountType->type;
$accountType = (string) config(sprintf('firefly.shortNamesByFullName.%s', $fullType));
$liabilityType = (string) config(sprintf('firefly.shortLiabilityNameByFullName.%s', $fullType));
$liabilityType = '' === $liabilityType ? null : $liabilityType;
$liabilityType = '' === $liabilityType ? null : strtolower($liabilityType);
// get account role (will only work if the type is asset.
$accountRole = $this->getAccountRole($account, $accountType);