Moved to Angular 16
Moved to FastAPI 0.100.0
Moved to pydantic 2.0
This commit is contained in:
2023-07-22 09:19:48 +05:30
parent 8b2d15b9e1
commit 09b762d154
161 changed files with 693 additions and 753 deletions

View File

@ -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[]> {

View File

@ -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> {

View File

@ -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>

View File

@ -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}`;