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:
2021-10-31 18:41:06 +05:30
parent f8de1cd3cf
commit 0574f9df14
71 changed files with 1382 additions and 497 deletions
@@ -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',
},
];