feat: add convert to credit note.

This commit is contained in:
elforjani13
2021-12-26 13:24:38 +02:00
parent 10f0d47b54
commit f9a7306e47
5 changed files with 67 additions and 6 deletions

View File

@@ -646,6 +646,21 @@ export const getDashboardRoutes = () => [
defaultSearchResource: RESOURCES_TYPES.CREDIT_NOTE,
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: `/credit-notes/new/?from_invoice_id=/:id`,
component: lazy(() =>
import(
'../containers/Sales/CreditNotes/CreditNoteForm/CreditNoteFormPage'
),
),
name: 'credit-note-new',
breadcrumb: intl.get('credit_note.label.new_credit_note'),
backLink: true,
sidebarExpand: false,
pageTitle: intl.get('credit_note.label.new_credit_note'),
defaultSearchResource: RESOURCES_TYPES.CREDIT_NOTE,
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: '/credit-notes/new',
component: lazy(() =>
@@ -773,6 +788,21 @@ export const getDashboardRoutes = () => [
defaultSearchResource: RESOURCES_TYPES.VENDOR_CREDIT,
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: '/vendor-credits/new/?from_bill_id=/:id',
component: lazy(() =>
import(
'containers/Purchases/CreditNotes/CreditNoteForm/VendorCreditNoteFormPage'
),
),
name: 'vendor-credits-new',
backLink: true,
sidebarExpand: false,
breadcrumb: intl.get('vendor_credits.label.new_vendor_credit'),
pageTitle: intl.get('vendor_credits.label.new_vendor_credit'),
defaultSearchResource: RESOURCES_TYPES.VENDOR_CREDIT,
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: '/vendor-credits/new',
component: lazy(() =>