fix: BIG-132 AR/AP aging summary report filter by none transactions/zero contacts.

This commit is contained in:
a.bouhuolia
2021-10-31 12:35:50 +02:00
parent 60f45f281a
commit cbce9f6d50
32 changed files with 241 additions and 122 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import * as R from 'ramda';
import { getColumnWidth, getForceWidth } from 'utils';
import { getColumnWidth } from 'utils';
import { CellForceWidth } from '../../../components';
/**
* columns mapper.
@@ -9,25 +9,15 @@ const columnsMapper = (data, index, column) => ({
id: column.key,
key: column.key,
Header: column.label,
accessor: ({ cells }) => {
return (
<span
className={'force-width'}
style={{
minWidth: getForceWidth(cells[0].value),
}}
>
{cells[index]?.value}
</span>
);
},
Cell: CellForceWidth,
accessor: `cells[${index}].value`,
forceWidthAccess: `cells[0].value`,
className: column.key,
width: getColumnWidth(data, `cells.${index}.key`, {
minWidth: 130,
magicSpacing: 10,
}),
disableSortBy: true,
// textOverview: true,
});
/**