mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: add sales tax summary report to reports list
This commit is contained in:
@@ -85,18 +85,8 @@ export const financialReportMenus = [
|
|||||||
subject: AbilitySubject.Report,
|
subject: AbilitySubject.Report,
|
||||||
ability: ReportsAction.READ_PROFIT_LOSS,
|
ability: ReportsAction.READ_PROFIT_LOSS,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: 'Sales Tax Liability Summary',
|
|
||||||
desc: 'Reports the total amount of sales tax collected from customers',
|
|
||||||
link: '/financial-reports/sales-tax-liability-summary',
|
|
||||||
subject: AbilitySubject.Report,
|
|
||||||
ability: ReportsAction.READ_SALES_TAX_LIABILITY_SUMMARY,
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
|
||||||
|
|
||||||
export const SalesAndPurchasesReportMenus = [
|
|
||||||
{
|
{
|
||||||
sectionTitle: <T id={'sales_purchases_reports'} />,
|
sectionTitle: <T id={'sales_purchases_reports'} />,
|
||||||
reports: [
|
reports: [
|
||||||
@@ -126,19 +116,6 @@ export const SalesAndPurchasesReportMenus = [
|
|||||||
subject: AbilitySubject.Report,
|
subject: AbilitySubject.Report,
|
||||||
ability: ReportsAction.READ_SALES_BY_ITEMS,
|
ability: ReportsAction.READ_SALES_BY_ITEMS,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: <T id={'inventory_valuation'} />,
|
|
||||||
desc: (
|
|
||||||
<T
|
|
||||||
id={
|
|
||||||
'summarize_the_business_s_purchase_items_quantity_cost_and_average'
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
link: '/financial-reports/inventory-valuation',
|
|
||||||
subject: AbilitySubject.Report,
|
|
||||||
ability: ReportsAction.READ_INVENTORY_VALUATION_SUMMARY,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: <T id={'customers_balance_summary'} />,
|
title: <T id={'customers_balance_summary'} />,
|
||||||
desc: (
|
desc: (
|
||||||
@@ -196,4 +173,16 @@ export const SalesAndPurchasesReportMenus = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
sectionTitle: 'Taxes',
|
||||||
|
reports: [
|
||||||
|
{
|
||||||
|
title: 'Sales Tax Liability Summary',
|
||||||
|
desc: 'Reports the total amount of sales tax collected from customers',
|
||||||
|
link: '/financial-reports/sales-tax-liability-summary',
|
||||||
|
subject: AbilitySubject.Report,
|
||||||
|
ability: ReportsAction.READ_SALES_TAX_LIABILITY_SUMMARY,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -741,6 +741,21 @@ export const SidebarMenu = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: 'Taxes',
|
||||||
|
type: ISidebarMenuItemType.Group,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
text: 'Sales Tax Liability Summary',
|
||||||
|
href: '/financial-reports/sales-tax-liability-summary',
|
||||||
|
type: ISidebarMenuItemType.Link,
|
||||||
|
permission: {
|
||||||
|
subject: AbilitySubject.Report,
|
||||||
|
ability: ReportsAction.READ_SALES_TAX_LIABILITY_SUMMARY,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: <T id={'sidebar.inventory'} />,
|
text: <T id={'sidebar.inventory'} />,
|
||||||
type: ISidebarMenuItemType.Group,
|
type: ISidebarMenuItemType.Group,
|
||||||
|
|||||||
@@ -3,11 +3,7 @@ import React from 'react';
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { For, DashboardInsider } from '@/components';
|
import { For, DashboardInsider } from '@/components';
|
||||||
import useFilterFinancialReports from './FilterFinancialReports';
|
import useFilterFinancialReports from './FilterFinancialReports';
|
||||||
|
import { financialReportMenus } from '@/constants/financialReportsMenu';
|
||||||
import {
|
|
||||||
financialReportMenus,
|
|
||||||
SalesAndPurchasesReportMenus,
|
|
||||||
} from '@/constants/financialReportsMenu';
|
|
||||||
|
|
||||||
import '@/style/pages/FinancialStatements/FinancialSheets.scss';
|
import '@/style/pages/FinancialStatements/FinancialSheets.scss';
|
||||||
|
|
||||||
@@ -39,18 +35,11 @@ function FinancialReportsSection({ sectionTitle, reports }) {
|
|||||||
*/
|
*/
|
||||||
export default function FinancialReports() {
|
export default function FinancialReports() {
|
||||||
const financialReportMenu = useFilterFinancialReports(financialReportMenus);
|
const financialReportMenu = useFilterFinancialReports(financialReportMenus);
|
||||||
const SalesAndPurchasesReportMenu = useFilterFinancialReports(
|
|
||||||
SalesAndPurchasesReportMenus,
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DashboardInsider name={'financial-reports'}>
|
<DashboardInsider name={'financial-reports'}>
|
||||||
<div class="financial-reports">
|
<div class="financial-reports">
|
||||||
<For render={FinancialReportsSection} of={financialReportMenu} />
|
<For render={FinancialReportsSection} of={financialReportMenu} />
|
||||||
<For
|
|
||||||
render={FinancialReportsSection}
|
|
||||||
of={SalesAndPurchasesReportMenu}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</DashboardInsider>
|
</DashboardInsider>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user