mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: Computed Net Income under Equity in Balance Sheet report. (#271)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user