mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat(BalanceSheet|ProfitLoss): comparions feature.
This commit is contained in:
@@ -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;
|
||||
}, {});
|
||||
};
|
||||
Reference in New Issue
Block a user