fix: correct issues with client loan creation
Avoid Javascript error, make Delinquency section work, clean up Fixes: WEB-20
This commit is contained in:
committed by
Adam Saghy
parent
6e200b2ecd
commit
10ca46907e
+2
-2
@@ -380,11 +380,11 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-container fxFlex="48%" *ngIf="isDelinquencyEnabled()">
|
<div fxFlex="48%" *ngIf="isDelinquencyEnabled()">
|
||||||
<mat-checkbox formControlName="enableInstallmentLevelDelinquency">
|
<mat-checkbox formControlName="enableInstallmentLevelDelinquency">
|
||||||
<p>{{ 'labels.inputs.Enable installment level Delinquency' | translate }}</p>
|
<p>{{ 'labels.inputs.Enable installment level Delinquency' | translate }}</p>
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</ng-container>
|
</div>
|
||||||
|
|
||||||
<ng-container fxFlex="48%" *ngIf="loansAccountTermsData?.isTopup">
|
<ng-container fxFlex="48%" *ngIf="loansAccountTermsData?.isTopup">
|
||||||
<mat-checkbox fxFlex="20%" formControlName="isTopup">
|
<mat-checkbox fxFlex="20%" formControlName="isTopup">
|
||||||
|
|||||||
+1
-12
@@ -590,18 +590,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isDelinquencyEnabled(): boolean {
|
isDelinquencyEnabled(): boolean {
|
||||||
if (!this.loanProduct || !this.loanProduct.delinquencyBucket) {
|
return !!this.loanProduct?.delinquencyBucket?.name;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
isDownPaymentEnabled(): boolean {
|
|
||||||
console.log(this.loanProduct);
|
|
||||||
if (!this.loanProduct || !this.loanProduct.delinquencyBucket) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user