mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
refactor(webapp): AR/AP aging summary table columns
This commit is contained in:
@@ -19,7 +19,10 @@ export default function ReceivableAgingSummaryTable({
|
||||
organizationName,
|
||||
}) {
|
||||
// AR aging summary report context.
|
||||
const { ARAgingSummary, isARAgingLoading } = useARAgingSummaryContext();
|
||||
const {
|
||||
ARAgingSummary: { table },
|
||||
isARAgingLoading,
|
||||
} = useARAgingSummaryContext();
|
||||
|
||||
// AR aging summary columns.
|
||||
const columns = useARAgingSummaryColumns();
|
||||
@@ -33,7 +36,7 @@ export default function ReceivableAgingSummaryTable({
|
||||
>
|
||||
<ARAgingSummaryDataTable
|
||||
columns={columns}
|
||||
data={ARAgingSummary.tableRows}
|
||||
data={table.rows}
|
||||
rowClassNames={tableRowTypesToClassnames}
|
||||
noInitialFetch={true}
|
||||
sticky={true}
|
||||
|
||||
Reference in New Issue
Block a user