feat(chart-of-accounts): view GL Account component

Add view GL Account component.
This commit is contained in:
Abhay Chawla
2018-08-04 22:09:54 +05:30
parent 787c3b66d3
commit 1707c2742c
11 changed files with 217 additions and 18 deletions
@@ -16,6 +16,8 @@ import { ChartOfAccountsComponent } from './chart-of-accounts/chart-of-accounts.
import { ChartOfAccountsResolver } from './chart-of-accounts/chart-of-accounts.resolver';
import { CreateGlAccountComponent } from './chart-of-accounts/create-gl-account/create-gl-account.component';
import { ViewGlAccountComponent } from './chart-of-accounts/view-gl-account/view-gl-account.component';
import { ViewGlAccountResolver } from './chart-of-accounts/view-gl-account/view-gl-account.resolver';
const routes: Routes = [
Route.withShell([
@@ -98,6 +100,14 @@ const routes: Routes = [
path: 'gl-accounts/create',
component: CreateGlAccountComponent,
data: { title: extract('Create GL Account'), breadcrumb: 'Create GL Account' },
},
{
path: 'gl-accounts/view/:id',
component: ViewGlAccountComponent,
data: { title: extract('View GL Account'), routeResolveBreadcrumb: ['glAccount', 'name'] },
resolve: {
glAccount: ViewGlAccountResolver
}
}
]
}
@@ -109,6 +119,9 @@ const routes: Routes = [
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
providers: [ChartOfAccountsResolver]
providers: [
ChartOfAccountsResolver,
ViewGlAccountResolver
]
})
export class AccountingRoutingModule { }