manage fee and region updates
This commit is contained in:
parent
48be10771a
commit
251b9f8644
@ -80,9 +80,7 @@
|
|||||||
Fee type is required
|
Fee type is required
|
||||||
</mat-error>
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-row">
|
|
||||||
<mat-form-field appearance="outline">
|
<mat-form-field appearance="outline">
|
||||||
<mat-label>Commission Rate</mat-label>
|
<mat-label>Commission Rate</mat-label>
|
||||||
<input matInput type="number" formControlName="commissionRate">
|
<input matInput type="number" formControlName="commissionRate">
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export class CarnetFeeComponent implements OnInit {
|
|||||||
set paginator(value: MatPaginator) {
|
set paginator(value: MatPaginator) {
|
||||||
this.dataSource.paginator = value;
|
this.dataSource.paginator = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewChild(MatSort) sort!: MatSort;
|
@ViewChild(MatSort) sort!: MatSort;
|
||||||
|
|
||||||
displayedColumns: string[] = ['feeType', 'commissionRate', 'effectiveDate', 'actions'];
|
displayedColumns: string[] = ['feeType', 'commissionRate', 'effectiveDate', 'actions'];
|
||||||
@ -173,7 +173,7 @@ export class CarnetFeeComponent implements OnInit {
|
|||||||
? this.feeCommissionService.updateFeeCommission(this.currentFeeCommissionId, feeCommissionData)
|
? this.feeCommissionService.updateFeeCommission(this.currentFeeCommissionId, feeCommissionData)
|
||||||
: this.feeCommissionService.createFeeCommission(this.spid, feeCommissionData);
|
: this.feeCommissionService.createFeeCommission(this.spid, feeCommissionData);
|
||||||
|
|
||||||
this.changeInProgress
|
this.changeInProgress = true;
|
||||||
saveObservable.pipe(finalize(() => {
|
saveObservable.pipe(finalize(() => {
|
||||||
this.changeInProgress = false;
|
this.changeInProgress = false;
|
||||||
})).subscribe({
|
})).subscribe({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user