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