feat: integrate balance sheet and P&L sheet with new API.

This commit is contained in:
a.bouhuolia
2022-01-30 15:57:27 +02:00
parent fa455152a3
commit 3d78d2d051
13 changed files with 147 additions and 256 deletions

View File

@@ -17,7 +17,7 @@ export default function ProfitLossSheetTable({
}) {
// Profit/Loss sheet context.
const {
profitLossSheet: { table },
profitLossSheet: { table, query },
isLoading,
} = useProfitLossSheetContext();
@@ -34,11 +34,11 @@ export default function ProfitLossSheetTable({
<FinancialSheet
companyName={companyName}
sheetType={<T id={'profit_loss_sheet'} />}
// fromDate={query.from_date}
// toDate={query.to_date}
fromDate={query.from_date}
toDate={query.to_date}
name="profit-loss-sheet"
loading={isLoading}
// basis={query.basis}
basis={query.basis}
>
<ProfitLossDataTable
columns={tableColumns}