Merge pull request #2452 from Cocoa-Puffs/fix/FINERACT-2232-Capitalized-income-Repayment-schedule-recalculation
fix: add capitalized income amount to loan summary view, remove capitalized income max amount validation FINERACT-2232
This commit is contained in:
@@ -82,7 +82,7 @@ export class GeneralTabComponent implements OnInit {
|
||||
this.loanSummaryTableData = [
|
||||
{
|
||||
property: 'Principal',
|
||||
original: this.loanDetails.summary.principalDisbursed,
|
||||
original: this.loanDetails.summary.totalPrincipal,
|
||||
adjustment: this.loanDetails.summary.principalAdjustments || 0,
|
||||
paid: this.loanDetails.summary.principalPaid,
|
||||
waived: this.loanDetails.summary.principalWaived || 0,
|
||||
|
||||
+6
-16
@@ -82,22 +82,12 @@ export class MakeRepaymentComponent implements OnInit {
|
||||
note: ''
|
||||
});
|
||||
|
||||
if (this.isCapitalizedIncome()) {
|
||||
this.repaymentLoanForm.addControl(
|
||||
'transactionAmount',
|
||||
new UntypedFormControl('', [
|
||||
Validators.required,
|
||||
Validators.min(0.001),
|
||||
Validators.max(this.dataObject.amount)])
|
||||
);
|
||||
} else {
|
||||
this.repaymentLoanForm.addControl(
|
||||
'transactionAmount',
|
||||
new UntypedFormControl('', [
|
||||
Validators.required,
|
||||
Validators.min(0.001)])
|
||||
);
|
||||
}
|
||||
this.repaymentLoanForm.addControl(
|
||||
'transactionAmount',
|
||||
new UntypedFormControl('', [
|
||||
Validators.required,
|
||||
Validators.min(0.001)])
|
||||
);
|
||||
}
|
||||
|
||||
setRepaymentLoanDetails() {
|
||||
|
||||
Reference in New Issue
Block a user