Chore:
Moved to Angular 16 Moved to FastAPI 0.100.0 Moved to pydantic 2.0
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
||||
import { ActivatedRouteSnapshot } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { User } from '../core/user';
|
||||
@ -9,7 +9,7 @@ import { CashierReportService } from './cashier-report.service';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ActiveCashiersResolver implements Resolve<User[]> {
|
||||
export class ActiveCashiersResolver {
|
||||
constructor(private ser: CashierReportService) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<User[]> {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
||||
import { ActivatedRouteSnapshot } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { CashierReport } from './cashier-report';
|
||||
@ -8,7 +8,7 @@ import { CashierReportService } from './cashier-report.service';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CashierReportResolver implements Resolve<CashierReport> {
|
||||
export class CashierReportResolver {
|
||||
constructor(private ser: CashierReportService) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<CashierReport> {
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
<!-- Amount Column -->
|
||||
<ng-container matColumnDef="amount">
|
||||
<mat-header-cell *matHeaderCellDef class="right">Amount</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row" class="right">{{ row.amount | currency : 'INR' }}</mat-cell>
|
||||
<mat-cell *matCellDef="let row" class="right">{{ row.amount | currency: 'INR' }}</mat-cell>
|
||||
</ng-container>
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
|
||||
|
||||
@ -15,7 +15,10 @@ const serviceName = 'CashierReportService';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CashierReportService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
list(id: string | null, startDate: string | null, finishDate: string | null): Observable<CashierReport> {
|
||||
const listUrl = id === null ? url : `${url}/${id}`;
|
||||
|
||||
Reference in New Issue
Block a user