fix: re-structure the system tables reports.

This commit is contained in:
a.bouhuolia
2022-02-16 18:44:10 +02:00
parent e6fcbfeea6
commit 79144ad4a5
15 changed files with 43 additions and 33 deletions

View File

@@ -4,7 +4,7 @@ import styled from 'styled-components';
import { defaultExpanderReducer, tableRowTypesToClassnames } from 'utils';
import { FinancialSheet, DataTable } from 'components';
import { FinancialSheet, ReportDataTable } from 'components';
import TableVirtualizedListRows from 'components/Datatable/TableVirtualizedRows';
import TableFastCell from 'components/Datatable/TableFastCell';
@@ -66,7 +66,7 @@ export default function GeneralLedgerTable({ companyName }) {
);
}
const GeneralLedgerDataTable = styled(DataTable)`
const GeneralLedgerDataTable = styled(ReportDataTable)`
.tbody {
.tr .td {
padding-top: 0.2rem;
@@ -91,13 +91,12 @@ const GeneralLedgerDataTable = styled(DataTable)`
&.date {
font-weight: 500;
.cell-inner{
.cell-inner {
white-space: nowrap;
position: relative;
}
}
}
&:not(:first-child).is-expanded .td {
border-top: 1px solid #ddd;
}
@@ -109,7 +108,6 @@ const GeneralLedgerDataTable = styled(DataTable)`
font-weight: 500;
}
}
&--CLOSING_BALANCE {
.name {
font-weight: 500;