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 = [
|
this.loanSummaryTableData = [
|
||||||
{
|
{
|
||||||
property: 'Principal',
|
property: 'Principal',
|
||||||
original: this.loanDetails.summary.principalDisbursed,
|
original: this.loanDetails.summary.totalPrincipal,
|
||||||
adjustment: this.loanDetails.summary.principalAdjustments || 0,
|
adjustment: this.loanDetails.summary.principalAdjustments || 0,
|
||||||
paid: this.loanDetails.summary.principalPaid,
|
paid: this.loanDetails.summary.principalPaid,
|
||||||
waived: this.loanDetails.summary.principalWaived || 0,
|
waived: this.loanDetails.summary.principalWaived || 0,
|
||||||
|
|||||||
+6
-16
@@ -82,22 +82,12 @@ export class MakeRepaymentComponent implements OnInit {
|
|||||||
note: ''
|
note: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.isCapitalizedIncome()) {
|
this.repaymentLoanForm.addControl(
|
||||||
this.repaymentLoanForm.addControl(
|
'transactionAmount',
|
||||||
'transactionAmount',
|
new UntypedFormControl('', [
|
||||||
new UntypedFormControl('', [
|
Validators.required,
|
||||||
Validators.required,
|
Validators.min(0.001)])
|
||||||
Validators.min(0.001),
|
);
|
||||||
Validators.max(this.dataObject.amount)])
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
this.repaymentLoanForm.addControl(
|
|
||||||
'transactionAmount',
|
|
||||||
new UntypedFormControl('', [
|
|
||||||
Validators.required,
|
|
||||||
Validators.min(0.001)])
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setRepaymentLoanDetails() {
|
setRepaymentLoanDetails() {
|
||||||
|
|||||||
Reference in New Issue
Block a user