From d9f06aa6eff5926f3153b94e97c05190e309c2c4 Mon Sep 17 00:00:00 2001 From: pc_11 <76156941+PC-11-00@users.noreply.github.com> Date: Mon, 29 May 2023 22:20:54 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20unable=20to=20create=20a=20loan=20accoun?= =?UTF-8?q?t=20when=20floating=20interest=20rate=20is=20used=C2=A0#1755=20?= =?UTF-8?q?(#1761)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit now we can create loan account when floating interest rate was used Fixes: #1755 --- .../loans-account-terms-step.component.ts | 7 ++-- .../loan-product-settings-step.component.ts | 1 + .../loan-product-terms-step.component.html | 32 +++++++++++++++---- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts b/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts index a894e5ecc..bb6bdf103 100644 --- a/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts +++ b/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts @@ -126,7 +126,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges { 'graceOnInterestCharged': this.loansAccountTermsData.graceOnInterestCharged, 'fixedEmiAmount': this.loansAccountTermsData.fixedEmiAmount, 'maxOutstandingLoanBalance': this.loansAccountTermsData.maxOutstandingLoanBalance, - 'transactionProcessingStrategyCode': this.loansAccountTermsData.transactionProcessingStrategyCode + 'transactionProcessingStrategyCode': this.loansAccountTermsData.transactionProcessingStrategyCode, + 'interestRateDifferential':this.loansAccountTermsData.interestRateDifferential }); this.multiDisburseLoan = this.loansAccountTermsData.multiDisburseLoan; @@ -208,7 +209,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges { 'graceOnInterestCharged': this.loansAccountTermsData.graceOnInterestCharged, 'fixedEmiAmount': this.loansAccountTermsData.fixedEmiAmount, 'maxOutstandingLoanBalance': this.loansAccountTermsData.maxOutstandingLoanBalance, - 'transactionProcessingStrategyCode': this.loansAccountTermsData.transactionProcessingStrategyCode + 'transactionProcessingStrategyCode': this.loansAccountTermsData.transactionProcessingStrategyCode, + 'interestRateDifferential':this.loansAccountTermsData.interestRateDifferential }); } this.createloansAccountTermsForm(); @@ -269,6 +271,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges { 'fixedEmiAmount': [''], 'isTopup': [''], 'maxOutstandingLoanBalance': [''], + 'interestRateDifferential':[''], 'transactionProcessingStrategyCode': ['', Validators.required] }); } diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-settings-step/loan-product-settings-step.component.ts b/src/app/products/loan-products/loan-product-stepper/loan-product-settings-step/loan-product-settings-step.component.ts index 4dff2e4c6..a65656bcd 100644 --- a/src/app/products/loan-products/loan-product-stepper/loan-product-settings-step/loan-product-settings-step.component.ts +++ b/src/app/products/loan-products/loan-product-stepper/loan-product-settings-step/loan-product-settings-step.component.ts @@ -38,6 +38,7 @@ export class LoanProductSettingsStepComponent implements OnInit { .subscribe((isLinkedToFloatingInterestRates: any) => { if (isLinkedToFloatingInterestRates) { this.loanProductSettingsForm.get('isInterestRecalculationEnabled').setValue(true); + this.loanProductSettingsForm.get('allowPartialPeriodInterestCalcualtion').setValue(true); } }); diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html b/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html index c7f629138..752fd97c8 100644 --- a/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html +++ b/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html @@ -6,7 +6,10 @@ Minimum - + + + Minimum Value must be greater equal to than 0 + @@ -19,7 +22,10 @@ Maximum - + + + Maximum Value must be greater equal to than 0 and must be greater than Minimum Principal + @@ -44,7 +50,10 @@ Minimum - + + + Minimum Value must be greater equal to than 0 + @@ -57,7 +66,10 @@ Maximum - + + + Maximum Value must be greater equal to than 0 and must be greater than Minimum Principal + @@ -74,7 +86,10 @@ Minimum - + + + Minimum Value must be greater than 0 + @@ -87,7 +102,10 @@ Maximum - + + + Maximum Value must be greater equal to than 0 and must be greater than Minimum Principal + @@ -134,7 +152,7 @@ Minimum - + Minimum interest rate is required