feat: Computed Net Income under Equity in Balance Sheet report. (#271)

This commit is contained in:
Ahmed Bouhuolia
2023-10-26 18:59:09 +02:00
committed by GitHub
parent 08ac5f4b01
commit e070ac72dd
27 changed files with 1463 additions and 253 deletions

View File

@@ -41,10 +41,10 @@ const mapValuesDeepReverse = (nodes, callback, config?) => {
);
const mappedNode = callback(node, children);
_.set(clonedNodes, pathString, {
...mappedNode,
...(!_.isEmpty(children) ? { children } : {}),
});
if (!mappedNode.children && children) {
mappedNode.children = children;
}
_.set(clonedNodes, pathString, mappedNode);
});
return clonedNodes;
};