Display Loan Arrears and Delinquency information using the global configuration (#1706)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-03-14 09:18:36 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent c5de9ba30c
commit 1e9444cd20
6 changed files with 72 additions and 21 deletions
@@ -27,6 +27,8 @@ export class LoansViewComponent implements OnInit {
loanDatatables: any;
/** Recalculate Interest */
recalculateInterest: any;
/** loan Arrears Delinquency config value */
loanDisplayArrearsDelinquency: number;
/** Status */
status: string;
entityType: string;
@@ -45,9 +47,10 @@ export class LoansViewComponent implements OnInit {
private router: Router,
public loansService: LoansService,
public dialog: MatDialog) {
this.route.data.subscribe((data: { loanDetailsData: any, loanDatatables: any}) => {
this.route.data.subscribe((data: { loanDetailsData: any, loanDatatables: any, loanArrearsDelinquencyConfig: any}) => {
this.loanDetailsData = data.loanDetailsData;
this.loanDatatables = data.loanDatatables;
this.loanDisplayArrearsDelinquency = data.loanArrearsDelinquencyConfig.value || 0;
this.loanStatus = this.loanDetailsData.status;
});
this.loanId = this.route.snapshot.params['loanId'];