mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
feat: more resources support importing
This commit is contained in:
@@ -507,6 +507,16 @@ export const getDashboardRoutes = () => [
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
// Expenses.
|
||||
{
|
||||
path: `/expenses/import`,
|
||||
component: lazy(() => import('@/containers/Expenses/ExpensesImport')),
|
||||
breadcrumb: 'Expenses Import',
|
||||
hotkey: 'ctrl+shift+x',
|
||||
pageTitle: 'Expenses Import',
|
||||
sidebarExpand: false,
|
||||
backLink: true,
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
{
|
||||
path: `/expenses/new`,
|
||||
component: lazy(
|
||||
@@ -657,6 +667,19 @@ export const getDashboardRoutes = () => [
|
||||
},
|
||||
|
||||
// Estimates
|
||||
{
|
||||
path: `/estimates/import`,
|
||||
component: lazy(
|
||||
() => import('@/containers/Sales/Estimates/EstimatesImport'),
|
||||
),
|
||||
name: 'estimate-edit',
|
||||
breadcrumb: 'Estimates Import',
|
||||
pageTitle: 'Estimates Import',
|
||||
backLink: true,
|
||||
sidebarExpand: false,
|
||||
defaultSearchResource: RESOURCES_TYPES.ESTIMATE,
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
{
|
||||
path: `/estimates/:id/edit`,
|
||||
component: lazy(
|
||||
@@ -715,6 +738,17 @@ export const getDashboardRoutes = () => [
|
||||
},
|
||||
|
||||
// Invoices.
|
||||
{
|
||||
path: `/invoices/import`,
|
||||
component: lazy(() => import('@/containers/Sales/Invoices/InvoicesImport')),
|
||||
name: 'invoice-edit',
|
||||
breadcrumb: 'Invoices Import',
|
||||
pageTitle: 'Invoices Import',
|
||||
sidebarExpand: false,
|
||||
backLink: true,
|
||||
defaultSearchResource: RESOURCES_TYPES.INVOICE,
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
{
|
||||
path: `/invoices/:id/edit`,
|
||||
component: lazy(
|
||||
@@ -1025,6 +1059,19 @@ export const getDashboardRoutes = () => [
|
||||
subscriptionInactive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
// Payment modes.
|
||||
{
|
||||
path: `/payment-mades/import`,
|
||||
component: lazy(
|
||||
() => import('@/containers/Purchases/PaymentMades/PaymentMadesImport'),
|
||||
),
|
||||
name: 'payment-made-edit',
|
||||
breadcrumb: intl.get('edit'),
|
||||
pageTitle: 'Bills Payments Import',
|
||||
sidebarExpand: false,
|
||||
backLink: true,
|
||||
defaultSearchResource: RESOURCES_TYPES.PAYMENT_MADE,
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
{
|
||||
path: `/payment-mades/:id/edit`,
|
||||
component: lazy(
|
||||
|
||||
Reference in New Issue
Block a user