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,17 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { BatchIntegrity } from './batch-integrity';
import { BatchIntegrityReportService } from './batch-integrity-report.service';
@Injectable({
providedIn: 'root',
})
export class BatchIntegrityResolverService implements Resolve<BatchIntegrity[]> {
constructor(private ser: BatchIntegrityReportService) {}
resolve(route: ActivatedRouteSnapshot): Observable<BatchIntegrity[]> {
return this.ser.batchIntegrity();
}
}