Chore:
Moved to Angular 16 Moved to FastAPI 0.100.0 Moved to pydantic 2.0
This commit is contained in:
@ -14,7 +14,10 @@ const serviceName = 'CustomerService';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CustomerDiscountsService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
list(id: string | undefined): Observable<DiscountItem[]> {
|
||||
const getUrl: string = id === undefined ? `${url}` : `${url}/${id}`;
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
<mat-form-field class="flex-auto">
|
||||
<input matInput type="number" formControlName="discount" autocomplete="off" />
|
||||
<span matSuffix>%</span>
|
||||
<mat-hint>Cust: {{ row.customer | percent : '1.2-2' }}</mat-hint>
|
||||
<mat-hint align="end">Max: {{ row.limit | percent : '1.2-2' }}</mat-hint>
|
||||
<mat-hint>Cust: {{ row.customer | percent: '1.2-2' }}</mat-hint>
|
||||
<mat-hint align="end">Max: {{ row.limit | percent: '1.2-2' }}</mat-hint>
|
||||
</mat-form-field>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user