Chore: Changed the account_type and voucher_type enum.
The account type enum is not stored in the database as an enum. The voucher_type enum is now a table in the database. Feature: Closing stock can now be saved and in each department.
This commit is contained in:
@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
import { CostCentreListResolver } from '../cost-centre/cost-centre-list-resolver.service';
|
||||
|
||||
import { ClosingStockResolver } from './closing-stock-resolver.service';
|
||||
import { ClosingStockComponent } from './closing-stock.component';
|
||||
@@ -17,7 +18,9 @@ const closingStockRoutes: Routes = [
|
||||
},
|
||||
resolve: {
|
||||
info: ClosingStockResolver,
|
||||
costCentres: CostCentreListResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
{
|
||||
path: ':date',
|
||||
@@ -28,7 +31,9 @@ const closingStockRoutes: Routes = [
|
||||
},
|
||||
resolve: {
|
||||
info: ClosingStockResolver,
|
||||
costCentres: CostCentreListResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user