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:
co-authored by
Jose Alberto Hernandez
parent
c5de9ba30c
commit
1e9444cd20
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user