Moved the batch integrity report from settings to its own report in products with permission of product ledger.

It also automatically fixes the issue prices.
This commit is contained in:
2021-09-24 14:40:51 +05:30
parent b1557bef88
commit 6d0d95070b
27 changed files with 613 additions and 200 deletions
@@ -0,0 +1,30 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '../auth/auth-guard.service';
import { BatchIntegrityReportComponent } from './batch-integrity-report.component';
import { BatchIntegrityResolverService } from './batch-integrity-resolver.service';
const batchIntegrityRoutes: Routes = [
{
path: '',
component: BatchIntegrityReportComponent,
canActivate: [AuthGuard],
data: {
permission: 'Product Ledger',
},
resolve: {
info: BatchIntegrityResolverService,
},
runGuardsAndResolvers: 'always',
},
];
@NgModule({
imports: [CommonModule, RouterModule.forChild(batchIntegrityRoutes)],
exports: [RouterModule],
providers: [BatchIntegrityResolverService],
})
export class BatchIntegrityReportRoutingModule {}