MIFOSX-1667 Renaming labels and setting default value of attributes to true during create loan product.

This commit is contained in:
Chandrika 2015-04-13 20:22:52 -04:00
parent 74ee10c699
commit 3b6af6c85f
2 changed files with 14 additions and 12 deletions

View File

@ -1203,7 +1203,7 @@
"label.heading.unassignsavingsofficer" : "Unassign Savings Officer",
"label.heading.savingsLinkage" : "Savings Linkage",
"label.heading.tranche": "Tranche",
"label.heading.configurableAttributes" : "Configurable Loan Attributes",
"label.heading.configurableAttributes" : "Configurable Terms and Settings",
"#Anchors": "..",
"label.anchor.viewloanaccount": "View Loan Account",
@ -1288,7 +1288,7 @@
"label.input.preclose.interest.calculation.strategy":"Pre-closure interest calculation rule",
"loanPreClosureInterestCalculationStrategy.tillPreClosureDate":"Calculate till pre closure date",
"loanPreClosureInterestCalculationStrategy.tillRestFrequencyDate":"Calculate till rest frequency date",
"label.input.isConfigLoanAttributes" : "Configure Loan Attributes",
"label.input.isConfigLoanAttributes" : "Allow overriding select terms and settings in loan accounts",
"#Buttons": "..",
"label.button.addloancharge": "Add Loan Charge",

View File

@ -19,15 +19,15 @@
scope.frFlag = false;
scope.fiFlag = false;
scope.piFlag = false;
scope.amortization = false;
scope.arrearsTolerance = false;
scope.graceOnArrearsAging = false;
scope.interestCalcPeriod = false;
scope.interestMethod = false;
scope.graceOnPrincipalAndInterest = false;
scope.repaymentFrequency = false;
scope.transactionProcessingStrategy = false;
scope.allowAttributeConfiguration = false;
scope.amortization = true;
scope.arrearsTolerance = true;
scope.graceOnArrearsAging = true;
scope.interestCalcPeriod = true;
scope.interestMethod = true;
scope.graceOnPrincipalAndInterest = true;
scope.repaymentFrequency = true;
scope.transactionProcessingStrategy = true;
scope.allowAttributeConfiguration = true;
resourceFactory.loanProductResource.get({resourceType: 'template'}, function (data) {
scope.product = data;
scope.assetAccountOptions = scope.product.accountingMappingOptions.assetAccountOptions || [];
@ -65,7 +65,9 @@
scope.formData.interestRecalculationCompoundingMethod = scope.product.interestRecalculationData.interestRecalculationCompoundingType.id;
scope.formData.rescheduleStrategyMethod = scope.product.interestRecalculationData.rescheduleStrategyType.id;
scope.formData.preClosureInterestCalculationStrategy = scope.product.interestRecalculationData.preClosureInterestCalculationStrategy.id;
scope.formData.recalculationRestFrequencyType = scope.product.interestRecalculationData.recalculationRestFrequencyType.id;
if(scope.product.interestRecalculationData.recalculationRestFrequencyType){
scope.formData.recalculationRestFrequencyType = scope.product.interestRecalculationData.recalculationRestFrequencyType.id;
}
});
scope.chargeSelected = function (chargeId) {