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:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user