Support for Charge-off and Undo charge-off to Loan account (#1748)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-05-09 22:09:45 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent d294885f00
commit b2aa39cb67
94 changed files with 863 additions and 481 deletions
@@ -147,6 +147,17 @@ export class LoansViewComponent implements OnInit {
});
}
if (!this.loanDetailsData.chargedOff) {
// Charge-Off only when there is not Interest Recalculation and the Interest Rate is zero
if (!this.loanDetailsData.chargedOff && !this.loanDetailsData.isInterestRecalculationEnabled && this.loanDetailsData.interestRatePerPeriod === 0) {
this.buttonConfig.addButton({
name: 'Charge-Off',
icon: 'coins',
taskPermissionName: 'CHARGEOFF_LOAN'
});
}
}
}
}
@@ -187,6 +198,13 @@ export class LoansViewComponent implements OnInit {
});
}
iconLoanStatusColor() {
if (this.loanDetailsData.chargedOff) {
return 'loanStatusType.chargeoff';
}
return this.loanDetailsData.status.code;
}
/**
* Delete loan Account
*/