Customer discount with prefill discount in sales.
This commit is contained in:
@ -12,9 +12,11 @@
|
||||
<ng-container matColumnDef="discount">
|
||||
<mat-header-cell *matHeaderCellDef class="center" fxFlex>Discount</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row; let i = index" class="center" [formGroupName]="i" fxFlex>
|
||||
<mat-form-field>
|
||||
<mat-form-field fxFlex="100%">
|
||||
<input matInput type="number" formControlName="discount" autocomplete="off" />
|
||||
<mat-hint>Maximum Discount {{ row.discountLimit | percent: '1.2-2' }}</mat-hint>
|
||||
<span matSuffix>%</span>
|
||||
<mat-hint>Cust: {{ row.customerDiscount | percent: '1.2-2' }}</mat-hint>
|
||||
<mat-hint align="end">Max: {{ row.discountLimit | percent: '1.2-2' }}</mat-hint>
|
||||
</mat-form-field>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user