feat: add create GL Account component

Add create GL Account component in chart of accounts.
This commit is contained in:
Abhay Chawla
2018-08-04 22:09:54 +05:30
parent 6f6378aa0e
commit 787c3b66d3
8 changed files with 213 additions and 6 deletions
@@ -15,6 +15,7 @@ import { EditFinancialActivityMappingComponent } from './financial-activity-mapp
import { ChartOfAccountsComponent } from './chart-of-accounts/chart-of-accounts.component';
import { ChartOfAccountsResolver } from './chart-of-accounts/chart-of-accounts.resolver';
import { CreateGlAccountComponent } from './chart-of-accounts/create-gl-account/create-gl-account.component';
const routes: Routes = [
Route.withShell([
@@ -84,11 +85,21 @@ const routes: Routes = [
},
{
path: 'chart-of-accounts',
component: ChartOfAccountsComponent,
data: { title: extract('Chart of Accounts'), breadcrumb: 'Chart of Accounts' },
resolve: {
glAccountData: ChartOfAccountsResolver
}
children: [
{
path: '',
component: ChartOfAccountsComponent,
resolve: {
glAccountData: ChartOfAccountsResolver
}
},
{
path: 'gl-accounts/create',
component: CreateGlAccountComponent,
data: { title: extract('Create GL Account'), breadcrumb: 'Create GL Account' },
}
]
}
]
}