Fix to display due or submitted date in Loan charges (#1830)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
640f3b46f7
commit
a9b8543120
@@ -147,15 +147,13 @@ export class LoansViewComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
// Allow ChargeOff only If there loan is not already ChargeOff
|
||||
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'
|
||||
});
|
||||
}
|
||||
this.buttonConfig.addButton({
|
||||
name: 'Charge-Off',
|
||||
icon: 'coins',
|
||||
taskPermissionName: 'CHARGEOFF_LOAN'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user