feat(BalanceSheet|ProfitLoss): comparions feature.

This commit is contained in:
a.bouhuolia
2022-01-29 20:46:41 +02:00
parent 735803f1a5
commit 77d826e6d4
17 changed files with 795 additions and 283 deletions

View File

@@ -900,3 +900,15 @@ export function ignoreEventFromSelectors(event, selectors) {
.map((selector) => event.target.closest(selector))
.some((element) => !!element);
}
export const tableRowTypesToClassnames = ({ original }) => {
const rowTypes = _.castArray(original.row_types);
return rowTypes.reduce((acc, rowType) => {
acc[`row_type--${rowType}`] = rowType;
return acc;
}, {});
};