feat(vendor): add contact duplicate.

This commit is contained in:
elforjani3
2021-03-03 16:40:23 +02:00
parent 7eca87215c
commit cfca038066
6 changed files with 67 additions and 9 deletions

View File

@@ -4,7 +4,6 @@ import { formatMessage } from 'services/intl';
// const BASE_URL = '/dashboard';
export default [
// Accounts.
{
path: `/accounts`,
@@ -132,7 +131,7 @@ export default [
hotkey: 'shift+5',
pageTitle: formatMessage({ id: 'trial_balance_sheet' }),
backLink: true,
sidebarShrink: true
sidebarShrink: true,
},
{
path: `/financial-reports/profit-loss-sheet`,
@@ -254,6 +253,16 @@ export default [
hotkey: 'shift+c',
pageTitle: formatMessage({ id: 'customers_list' }),
},
{
path: `/customers/contact_duplicate=/:id`,
component: lazy(() =>
import('containers/Customers/CustomerForm/CustomerFormPage'),
),
name: 'duplicate-customer',
breadcrumb: 'Duplicate Customer',
pageTitle: formatMessage({ id: 'new_customer' }),
backLink: true,
},
// Vendors
{
@@ -286,6 +295,16 @@ export default [
hotkey: 'shift+v',
pageTitle: formatMessage({ id: 'vendors_list' }),
},
{
path: `/vendors/contact_duplicate=/:id`,
component: lazy(() =>
import('containers/Vendors/VendorForm/VendorFormPage'),
),
name: 'duplicate-vendor',
breadcrumb: 'Duplicate Vendor',
pageTitle: formatMessage({ id: 'new_vendor' }),
backLink: true,
},
// Estimates
{