2018-05-25 13:49:00 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {ClosingStockResolver} from './closing-stock-resolver.service';
|
|
|
|
import {AuthGuard} from '../auth/auth-guard.service';
|
|
|
|
import {ClosingStockComponent} from './closing-stock.component';
|
|
|
|
|
|
|
|
const closingStockRoutes: Routes = [
|
|
|
|
{
|
2019-06-12 14:04:50 +00:00
|
|
|
path: '',
|
2018-05-25 13:49:00 +00:00
|
|
|
component: ClosingStockComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
|
|
|
permission: 'Closing Stock'
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
info: ClosingStockResolver
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-06-12 14:04:50 +00:00
|
|
|
path: ':date',
|
2018-05-25 13:49:00 +00:00
|
|
|
component: ClosingStockComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
|
|
|
permission: 'Closing Stock'
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
info: ClosingStockResolver
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
RouterModule.forChild(closingStockRoutes)
|
|
|
|
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
RouterModule
|
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
ClosingStockResolver
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class ClosingStockRoutingModule {
|
|
|
|
}
|