2020-10-01 15:21:22 +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';
|
2018-05-25 13:49:00 +00:00
|
|
|
|
|
|
|
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: {
|
2020-10-01 15:21:22 +00:00
|
|
|
permission: 'Closing Stock',
|
2018-05-25 13:49:00 +00:00
|
|
|
},
|
|
|
|
resolve: {
|
2020-10-01 15:21:22 +00:00
|
|
|
info: ClosingStockResolver,
|
|
|
|
},
|
2018-05-25 13:49:00 +00:00
|
|
|
},
|
|
|
|
{
|
2019-06-12 14:04:50 +00:00
|
|
|
path: ':date',
|
2018-05-25 13:49:00 +00:00
|
|
|
component: ClosingStockComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
2020-10-01 15:21:22 +00:00
|
|
|
permission: 'Closing Stock',
|
2018-05-25 13:49:00 +00:00
|
|
|
},
|
|
|
|
resolve: {
|
2020-10-01 15:21:22 +00:00
|
|
|
info: ClosingStockResolver,
|
|
|
|
},
|
|
|
|
},
|
2018-05-25 13:49:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2020-10-01 15:21:22 +00:00
|
|
|
imports: [CommonModule, RouterModule.forChild(closingStockRoutes)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
providers: [ClosingStockResolver],
|
2018-05-25 13:49:00 +00:00
|
|
|
})
|
2020-10-01 15:21:22 +00:00
|
|
|
export class ClosingStockRoutingModule {}
|