Expand account list

This commit is contained in:
James Cole
2024-03-04 20:41:34 +01:00
parent ea573e9434
commit 88a9bc379e
17 changed files with 581 additions and 26 deletions

View File

@@ -114,7 +114,7 @@ class AccountTransformer extends AbstractTransformer
// no currency? use default
$currency = $this->default;
if (0 !== (int)$this->accountMeta[$id]['currency_id']) {
if (array_key_exists($id, $this->accountMeta) && 0 !== (int)$this->accountMeta[$id]['currency_id']) {
$currency = $this->currencies[(int)$this->accountMeta[$id]['currency_id']];
}
// amounts and calculation.