feat: add sales tax summary report to reports list

This commit is contained in:
Ahmed Bouhuolia
2023-09-02 01:51:28 +02:00
parent 801ea5dfdb
commit bb7cf41e3e
3 changed files with 28 additions and 35 deletions

View File

@@ -3,11 +3,7 @@ import React from 'react';
import { Link } from 'react-router-dom';
import { For, DashboardInsider } from '@/components';
import useFilterFinancialReports from './FilterFinancialReports';
import {
financialReportMenus,
SalesAndPurchasesReportMenus,
} from '@/constants/financialReportsMenu';
import { financialReportMenus } from '@/constants/financialReportsMenu';
import '@/style/pages/FinancialStatements/FinancialSheets.scss';
@@ -39,18 +35,11 @@ function FinancialReportsSection({ sectionTitle, reports }) {
*/
export default function FinancialReports() {
const financialReportMenu = useFilterFinancialReports(financialReportMenus);
const SalesAndPurchasesReportMenu = useFilterFinancialReports(
SalesAndPurchasesReportMenus,
);
return (
<DashboardInsider name={'financial-reports'}>
<div class="financial-reports">
<For render={FinancialReportsSection} of={financialReportMenu} />
<For
render={FinancialReportsSection}
of={SalesAndPurchasesReportMenu}
/>
</div>
</DashboardInsider>
);