fix:not able to create a tranche loan account when "Disallow Expected Disbursements" checkbox is disabled (#1763)
now we can create loan account when “disallow expected disbursements” is disabled Fixes: #1752 LGTM tested locally all config working as expected
This commit is contained in:
+1
-1
@@ -297,7 +297,7 @@
|
||||
<input matInput required formControlName="maxOutstandingLoanBalance">
|
||||
</mat-form-field>
|
||||
<span fxFlex>
|
||||
<button type="button" mat-icon-button color="primary" (click)="addDisbursementDataEntry(disbursementData)"
|
||||
<button type="button" mat-icon-button color="primary" required (click)="addDisbursementDataEntry(disbursementData)"
|
||||
[disabled]="isMultiDisbursedCompleted">
|
||||
<fa-icon icon="plus-circle" size="lg"></fa-icon>
|
||||
</button>
|
||||
|
||||
+8
-5
@@ -127,7 +127,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
'fixedEmiAmount': this.loansAccountTermsData.fixedEmiAmount,
|
||||
'maxOutstandingLoanBalance': this.loansAccountTermsData.maxOutstandingLoanBalance,
|
||||
'transactionProcessingStrategyCode': this.loansAccountTermsData.transactionProcessingStrategyCode,
|
||||
'interestRateDifferential':this.loansAccountTermsData.interestRateDifferential
|
||||
'interestRateDifferential':this.loansAccountTermsData.interestRateDifferential,
|
||||
'multiDisburseLoan': this.loansAccountTermsData.multiDisburseLoan
|
||||
});
|
||||
|
||||
this.multiDisburseLoan = this.loansAccountTermsData.multiDisburseLoan;
|
||||
@@ -210,7 +211,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
'fixedEmiAmount': this.loansAccountTermsData.fixedEmiAmount,
|
||||
'maxOutstandingLoanBalance': this.loansAccountTermsData.maxOutstandingLoanBalance,
|
||||
'transactionProcessingStrategyCode': this.loansAccountTermsData.transactionProcessingStrategyCode,
|
||||
'interestRateDifferential':this.loansAccountTermsData.interestRateDifferential
|
||||
'interestRateDifferential':this.loansAccountTermsData.interestRateDifferential,
|
||||
'multiDisburseLoan': this.loansAccountTermsData.multiDisburseLoan
|
||||
});
|
||||
}
|
||||
this.createloansAccountTermsForm();
|
||||
@@ -272,7 +274,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
'isTopup': [''],
|
||||
'maxOutstandingLoanBalance': [''],
|
||||
'interestRateDifferential':[''],
|
||||
'transactionProcessingStrategyCode': ['', Validators.required]
|
||||
'transactionProcessingStrategyCode': ['', Validators.required],
|
||||
'multiDisburseLoan': [false]
|
||||
});
|
||||
}
|
||||
|
||||
@@ -304,8 +307,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
}),
|
||||
new InputBase({
|
||||
controlName: 'principal',
|
||||
label: 'Principal',
|
||||
value: (currentPrincipalAmount - this.totalMultiDisbursed),
|
||||
label: `Principal(It should be less than equal to the ${currentPrincipalAmount})`,
|
||||
value: '',
|
||||
type: 'number',
|
||||
required: true,
|
||||
order: 2
|
||||
|
||||
@@ -587,7 +587,7 @@ export class LoansService {
|
||||
delete loansAccountData.isValid;
|
||||
loansAccountData.principal = loansAccountData.principalAmount;
|
||||
delete loansAccountData.principalAmount;
|
||||
|
||||
delete loansAccountData.multiDisburseLoan; //this was just added so that disbursement data can be send in the backend
|
||||
return loansAccountData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user