Loan Buy Down Fee transaction only when the Loan has enable this feature

This commit is contained in:
Jose Alberto Hernandez
2025-07-08 09:09:53 -05:00
parent 0a3cf24ad8
commit 08938c93df
13 changed files with 92 additions and 26 deletions
@@ -183,16 +183,18 @@ export class LoansViewComponent implements OnInit {
taskPermissionName: 'DISBURSE_LOAN'
});
} else if (this.status === 'Active') {
this.buttonConfig.addButton({
name: 'Buy Down Fee',
icon: 'plus',
taskPermissionName: 'BUY_DOWN_FEE_LOAN'
});
if (this.loanDetailsData.enableBuyDownFee) {
this.buttonConfig.addButton({
name: 'Buy Down Fee',
icon: 'plus',
taskPermissionName: 'BUYDOWNFEE_LOAN'
});
}
if (this.loanDetailsData.enableIncomeCapitalization) {
this.buttonConfig.addButton({
name: 'Capitalized Income',
icon: 'coins',
taskPermissionName: 'CAPITALIZED_INCOME_LOAN'
taskPermissionName: 'CAPITALIZEDINCOME_LOAN'
});
}