Blacked and isorted the python files

Prettied and eslinted the typescript/html files
This commit is contained in:
2020-10-11 10:56:29 +05:30
parent b31db593c2
commit d677cfb1ea
505 changed files with 7559 additions and 5649 deletions
@@ -1,18 +1,17 @@
import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, Resolve, RouterStateSnapshot} from '@angular/router';
import {Observable} from 'rxjs/internal/Observable';
import {ProductSaleReport} from './product-sale-report';
import {ProductSaleReportService} from './product-sale-report.service';
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { ProductSaleReport } from './product-sale-report';
import { ProductSaleReportService } from './product-sale-report.service';
@Injectable({
providedIn: 'root'
providedIn: 'root',
})
export class ProductSaleReportResolver implements Resolve<ProductSaleReport> {
constructor(private ser: ProductSaleReportService) {}
constructor(private ser: ProductSaleReportService) {
}
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<ProductSaleReport> {
resolve(route: ActivatedRouteSnapshot): Observable<ProductSaleReport> {
const startDate = route.queryParamMap.get('startDate') || null;
const finishDate = route.queryParamMap.get('finishDate') || null;
return this.ser.get(startDate, finishDate);