interestChargedFromDisbursementDate flag only for cumulative loans
This commit is contained in:
+5
-6
@@ -326,12 +326,11 @@
|
||||
<p>{{ 'labels.inputs.Calculate interest for exact days in partial period' | translate }}</p>
|
||||
</mat-checkbox>
|
||||
|
||||
<mat-checkbox
|
||||
fxFlex="48%"
|
||||
formControlName="interestRecognitionOnDisbursementDate"
|
||||
>
|
||||
<p>{{ 'labels.inputs.Is interest recognition on disbursement date?' | translate }}</p>
|
||||
</mat-checkbox>
|
||||
<ng-container *ngIf="isProgressive">
|
||||
<mat-checkbox formControlName="interestRecognitionOnDisbursementDate" fxFlex="48%">
|
||||
<p>{{ 'labels.inputs.Is interest recognition on disbursement date?' | translate }}</p>
|
||||
</mat-checkbox>
|
||||
</ng-container>
|
||||
|
||||
<mat-form-field fxFlex="48%">
|
||||
<mat-label>{{ 'labels.inputs.Arrears tolerance' | translate }} </mat-label>
|
||||
|
||||
+7
-1
@@ -100,6 +100,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
currency: Currency;
|
||||
|
||||
productEnableDownPayment = false;
|
||||
isProgressive = false;
|
||||
|
||||
/**
|
||||
* Create Loans Account Terms Form
|
||||
@@ -127,7 +128,8 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
this.loansAccountTermsData = this.loansAccountTemplate;
|
||||
}
|
||||
this.productEnableDownPayment = this.loansAccountTermsData.product.enableDownPayment;
|
||||
|
||||
this.isProgressive =
|
||||
this.loansAccountTermsData.loanScheduleType.code == LoanProducts.LOAN_SCHEDULE_TYPE_PROGRESSIVE;
|
||||
if (this.loansAccountTermsData.product) {
|
||||
this.loanProduct = this.loansAccountTermsData.product;
|
||||
}
|
||||
@@ -164,6 +166,10 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
|
||||
this.setAdvancedPaymentStrategyControls();
|
||||
|
||||
if (this.loansAccountTermsData.loanScheduleType.code == LoanProducts.LOAN_SCHEDULE_TYPE_CUMULATIVE) {
|
||||
this.loansAccountTermsForm.removeControl('interestRecognitionOnDisbursementDate');
|
||||
}
|
||||
|
||||
if (this.loansAccountTermsData.isLoanProductLinkedToFloatingRate) {
|
||||
this.loansAccountTermsForm.removeControl('interestRatePerPeriod');
|
||||
}
|
||||
|
||||
@@ -123,9 +123,7 @@
|
||||
</div>
|
||||
|
||||
<div fxFlexFill>
|
||||
<span fxFlex="50%"
|
||||
>{{ 'labels.inputs.Is interest recognition on disbursement date?' | translate }}:</span
|
||||
>
|
||||
<span fxFlex="50%">{{ 'labels.inputs.Is interest recognition on disbursement date?' | translate }}:</span>
|
||||
<span fxFlex="50%">{{ loanDetails.interestRecognitionOnDisbursementDate | yesNo }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
+2
-4
@@ -363,12 +363,10 @@
|
||||
</div>
|
||||
|
||||
<div fxFlexFill>
|
||||
<span fxFlex="47%"
|
||||
>{{ 'labels.inputs.Is interest recognition on disbursement date?' | translate }}:</span
|
||||
>
|
||||
<span fxFlex="47%">{{ 'labels.inputs.Is interest recognition on disbursement date?' | translate }}:</span>
|
||||
<span fxFlex="53%">{{ loanProduct.interestRecognitionOnDisbursementDate | yesNo }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
<h3 class="mat-h3" fxFlexFill>{{ 'labels.inputs.Loan Schedule' | translate }}</h3>
|
||||
|
||||
<mat-divider [inset]="true"></mat-divider>
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@
|
||||
>
|
||||
{{ 'labels.inputs.Is Zero Interest Rate?' | translate }}
|
||||
</mat-checkbox>
|
||||
|
||||
|
||||
<mat-checkbox
|
||||
fxFlex="32%"
|
||||
labelPosition="before"
|
||||
|
||||
Reference in New Issue
Block a user