@zeniai/client-epic-state 4.19.96-beta0ND → 4.19.96-beta1ND

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,6 +166,7 @@ function pivotSectionToHorizontal(section, classColumns, title, currency) {
166
166
  accounts.push({
167
167
  accountId,
168
168
  accountName: accountData.accountName,
169
+ accountType: accountData.accountType,
169
170
  depth: accountData.depth,
170
171
  classBalances,
171
172
  rowTotal: toAmountWC(rowTotal, currency),
@@ -231,6 +232,7 @@ function collectAccountsFromNestedAccount(nestedAccount, classId, accountMap, de
231
232
  if (!accountMap.has(accountId)) {
232
233
  accountMap.set(accountId, {
233
234
  accountName,
235
+ accountType: nestedAccount.account.accountType,
234
236
  depth,
235
237
  classBalances: new Map(),
236
238
  });
@@ -240,6 +242,9 @@ function collectAccountsFromNestedAccount(nestedAccount, classId, accountMap, de
240
242
  return;
241
243
  }
242
244
  accountData.depth = Math.max(accountData.depth, depth);
245
+ if (accountData.accountType == null && nestedAccount.account.accountType != null) {
246
+ accountData.accountType = nestedAccount.account.accountType;
247
+ }
243
248
  const existing = accountData.classBalances.get(classId) ?? 0;
244
249
  accountData.classBalances.set(classId, existing + balance);
245
250
  // Process sub-accounts