mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 14:26:51 +00:00
FINERACT-1348-fixed-principal-percentage (#3381)
This commit is contained in:
parent
8c2ad4d3d0
commit
897322facc
@ -4288,5 +4288,9 @@
|
||||
"label.selectrate" : "Select Rate",
|
||||
"label.input.street":"Street",
|
||||
|
||||
"label.input.fixed.pricipal.percentage.per.installment" : "Fixed Principal % per instalment",
|
||||
"label.heading.fixed.pricipal.percentage.per.installment" : "Fixed Principal % per instalment",
|
||||
"label.tooltip.fixed.pricipal.percentage.per.installment" : "Principal portion of the instalments except the last installment will be fixed to this value.",
|
||||
|
||||
"----End---": "--End of file--- "
|
||||
}
|
||||
|
||||
@ -132,6 +132,7 @@
|
||||
scope.formData.interestRatePerPeriod = scope.loanaccountinfo.interestRatePerPeriod;
|
||||
scope.formData.interestRateFrequencyType = scope.loanaccountinfo.interestRateFrequencyType.id;
|
||||
scope.formData.amortizationType = scope.loanaccountinfo.amortizationType.id;
|
||||
scope.formData.fixedPrincipalPercentagePerInstallment = scope.loanaccountinfo.fixedPrincipalPercentagePerInstallment;
|
||||
scope.formData.interestType = scope.loanaccountinfo.interestType.id;
|
||||
scope.formData.isEqualAmortization = scope.loanaccountinfo.isEqualAmortization;
|
||||
scope.formData.interestCalculationPeriodType = scope.loanaccountinfo.interestCalculationPeriodType.id;
|
||||
|
||||
@ -154,6 +154,7 @@
|
||||
scope.loandetails.repaymentFrequencyValue = scope.loanaccountinfo.repaymentFrequencyType.value;
|
||||
scope.formData.interestRatePerPeriod = scope.loanaccountinfo.interestRatePerPeriod;
|
||||
scope.formData.amortizationType = scope.loanaccountinfo.amortizationType.id;
|
||||
scope.formData.fixedPrincipalPercentagePerInstallment = scope.loanaccountinfo.fixedPrincipalPercentagePerInstallment;
|
||||
scope.formData.isEqualAmortization = scope.loanaccountinfo.isEqualAmortization;
|
||||
scope.loandetails.amortizationValue = scope.loanaccountinfo.amortizationType.value;
|
||||
scope.formData.interestType = scope.loanaccountinfo.interestType.id;
|
||||
|
||||
@ -415,6 +415,10 @@
|
||||
this.formData.allowPartialPeriodInterestCalcualtion = false;
|
||||
}
|
||||
|
||||
if(this.formData.amortizationType != 0){
|
||||
this.formData.fixedPrincipalPercentagePerInstallment = null;
|
||||
}
|
||||
|
||||
if (this.formData.recalculationCompoundingFrequencyType == 4) {
|
||||
if(this.formData.recalculationCompoundingFrequencyNthDayType == -2) {
|
||||
delete this.formData.recalculationCompoundingFrequencyNthDayType;
|
||||
|
||||
@ -72,6 +72,7 @@
|
||||
maxInterestRatePerPeriod: scope.product.maxInterestRatePerPeriod,
|
||||
interestRateFrequencyType: scope.product.interestRateFrequencyType.id,
|
||||
amortizationType: scope.product.amortizationType.id,
|
||||
fixedPrincipalPercentagePerInstallment: scope.product.fixedPrincipalPercentagePerInstallment,
|
||||
interestType: scope.product.interestType.id,
|
||||
interestCalculationPeriodType: scope.product.interestCalculationPeriodType.id,
|
||||
allowPartialPeriodInterestCalcualtion:scope.product.allowPartialPeriodInterestCalcualtion,
|
||||
@ -566,6 +567,10 @@
|
||||
this.formData.allowPartialPeriodInterestCalcualtion = false;
|
||||
}
|
||||
|
||||
if(this.formData.amortizationType != 0){
|
||||
this.formData.fixedPrincipalPercentagePerInstallment = null;
|
||||
}
|
||||
|
||||
if (this.formData.recalculationCompoundingFrequencyType == 4) {
|
||||
if(this.formData.recalculationCompoundingFrequencyNthDayType == -2) {
|
||||
delete this.formData.recalculationCompoundingFrequencyNthDayType;
|
||||
|
||||
@ -238,6 +238,18 @@
|
||||
<td class="paddedbottom10" ng-hide="response.uiDisplayConfigurations.loanAccount.isHiddenField.interestType == true"> <input type="checkbox" ng-model="formData.isEqualAmortization" ng-true-value="true" ng-false-value="false">
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-show="formData.amortizationType == 0">
|
||||
<td class="form-group" >
|
||||
<label class="control-label">{{ 'label.input.fixed.pricipal.percentage.per.installment' | translate }}
|
||||
<i class="fa fa-question-circle" uib-tooltip="{{'label.tooltip.fixed.pricipal.percentage.per.installment' | translate}}"
|
||||
tooltip-append-to-body="true"></i>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input id="fixedPrincipalPercentagePerInstallment" type="text" name="fixedPrincipalPercentagePerInstallment" class="form-control"
|
||||
ng-model="formData.fixedPrincipalPercentagePerInstallment" late-validate number>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ng-hide="response.uiDisplayConfigurations.loanAccount.isHiddenField.interestCalculationPeriodType == true"><label>{{ 'label.input.interestcalculationperiod' | translate }} <span
|
||||
class="required">*</span></label></td>
|
||||
|
||||
@ -319,6 +319,16 @@
|
||||
ng-options="amortizationType.id as amortizationType.value for amortizationType in loanaccountinfo.amortizationTypeOptions"
|
||||
value="{{amortizationType.id}}" ng-disabled="!loanaccountinfo.product.allowAttributeOverrides.amortizationType"></select>
|
||||
</td>
|
||||
<td class="form-group" ng-show="formData.amortizationType == 0">
|
||||
<label class="control-label">{{ 'label.input.fixed.pricipal.percentage.per.installment' | translate }}
|
||||
<i class="fa fa-question-circle" uib-tooltip="{{'label.tooltip.fixed.pricipal.percentage.per.installment' | translate}}"
|
||||
tooltip-append-to-body="true"></i>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input id="fixedPrincipalPercentagePerInstallment" type="text" name="fixedPrincipalPercentagePerInstallment" class="form-control"
|
||||
ng-model="formData.fixedPrincipalPercentagePerInstallment" late-validate number>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ng-hide="response.uiDisplayConfigurations.loanAccount.isHiddenField.interestCalculationPeriodType == true">
|
||||
@ -981,6 +991,10 @@
|
||||
<td colspan="6">{{ 'label.input.amortization' | translate }} </td>
|
||||
<td>{{loandetails.amortizationValue}}</td>
|
||||
</tr>
|
||||
<tr ng-show="formData.amortizationType == 0">
|
||||
<td colspan="6">{{ 'label.input.fixed.pricipal.percentage.per.installment' | translate }} </td>
|
||||
<td>{{formData.fixedPrincipalPercentagePerInstallment}}</td>
|
||||
</tr>
|
||||
<tr ng-hide="response.uiDisplayConfigurations.loanAccount.isHiddenField.interestCalculationPeriodType">
|
||||
<td colspan="6">{{ 'label.input.interestcalculationperiod' | translate }} </td>
|
||||
<td>{{loandetails.interestCalculationPeriodValue}}</td>
|
||||
|
||||
@ -645,6 +645,20 @@
|
||||
ng-false-value="false">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" ng-show="formData.amortizationType == 0">
|
||||
<label class="control-label col-sm-2">{{ 'label.input.fixed.pricipal.percentage.per.installment' | translate }}
|
||||
<i class="fa fa-question-circle" uib-tooltip="{{'label.tooltip.fixed.pricipal.percentage.per.installment' | translate}}"
|
||||
tooltip-append-to-body="true"></i>
|
||||
</label>
|
||||
<div class="col-sm-2">
|
||||
<input id="fixedPrincipalPercentagePerInstallment" type="text" name="fixedPrincipalPercentagePerInstallment" class="form-control"
|
||||
ng-model="formData.fixedPrincipalPercentagePerInstallment" late-validate number>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<form-validate valattributeform="Settings" valattribute="fixedPrincipalPercentagePerInstallment"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2">{{ 'label.input.interestcalculationperiod' | translate }}<span
|
||||
class="required">*</span>
|
||||
|
||||
@ -508,6 +508,16 @@
|
||||
ng-false-value="false">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" ng-show="formData.amortizationType == 0">
|
||||
<label class="control-label col-sm-2">{{ 'label.input.fixed.pricipal.percentage.per.installment' | translate }}
|
||||
<i class="fa fa-question-circle" uib-tooltip="{{'label.tooltip.fixed.pricipal.percentage.per.installment' | translate}}"
|
||||
tooltip-append-to-body="true"></i>
|
||||
</label>
|
||||
<div class="col-sm-2">
|
||||
<input id="fixedPrincipalPercentagePerInstallment" type="text" name="fixedPrincipalPercentagePerInstallment" class="form-control"
|
||||
ng-model="formData.fixedPrincipalPercentagePerInstallment" late-validate number>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2">{{ 'label.input.interestcalculationperiod' | translate }}<span
|
||||
class="required">*</span>
|
||||
|
||||
@ -194,6 +194,10 @@
|
||||
<td>{{'label.heading.equalamortization' | translate}}</td>
|
||||
<td colspan="3">{{loanproduct.isEqualAmortization}}</td>
|
||||
</tr>
|
||||
<tr ng-show="loanproduct.amortizationType.id == 0">
|
||||
<td>{{'label.heading.fixed.pricipal.percentage.per.installment' | translate}}</td>
|
||||
<td colspan="3">{{loanproduct.fixedPrincipalPercentagePerInstallment}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{'label.heading.interestcalculationperiod' | translate}}</td>
|
||||
<td colspan="3">{{loanproduct.interestCalculationPeriodType.value}}</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user