manage fee and region updates

This commit is contained in:
Cyril Joseph 2025-11-08 10:46:09 -04:00
parent 48be10771a
commit 251b9f8644
2 changed files with 2 additions and 4 deletions

View File

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

View File

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