Loan Product Repayment Start date configuration (#1846)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
f557088ecd
commit
19cb457a1f
@@ -2,8 +2,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
||||
|
||||
// rxjs Imports
|
||||
import { Observable, of } from 'rxjs';
|
||||
// rxjs Imports
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// Custom Service
|
||||
import { SavingsService } from '../savings.service';
|
||||
@@ -11,8 +11,8 @@ import { SavingsService } from '../savings.service';
|
||||
@Injectable()
|
||||
export class TransactionDatatableResolver implements Resolve<Object> {
|
||||
/**
|
||||
*
|
||||
* @param {SavingsService} savingsService
|
||||
*
|
||||
* @param {SavingsService} savingsService
|
||||
*/
|
||||
constructor(private savingsService: SavingsService) { }
|
||||
/**
|
||||
@@ -25,4 +25,4 @@ export class TransactionDatatableResolver implements Resolve<Object> {
|
||||
const datatableName = route.paramMap.get('datatableName');
|
||||
return this.savingsService.getSavingsTransactionDatatable(accountId, datatableName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
||||
|
||||
// rxjs Imports
|
||||
import { Observable, of } from 'rxjs';
|
||||
// rxjs Imports
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// Custom Service
|
||||
import { SavingsService } from '../savings.service';
|
||||
@@ -12,16 +12,16 @@ import { SavingsService } from '../savings.service';
|
||||
export class TransactionDatatablesResolver implements Resolve<Object> {
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param savingsService Savings Service
|
||||
*/
|
||||
constructor(private savingsService: SavingsService) { }
|
||||
/**
|
||||
*
|
||||
* @param route
|
||||
*
|
||||
* @param route
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
return this.savingsService.getSavingsTransactionDatatables();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -21,5 +21,4 @@ export class DatatableTransactionTabComponent {
|
||||
this.multiRowDatatableFlag = this.entityDatatable.columnHeaders[0].columnName === 'id' ? true : false;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -31,7 +31,7 @@ export class ViewTransactionComponent {
|
||||
entityDatatable: any;
|
||||
/** Multi Row Datatable Flag */
|
||||
multiRowDatatableFlag: boolean;
|
||||
isActive:false;
|
||||
isActive: false;
|
||||
|
||||
/**
|
||||
* Retrieves the Transaction data from `resolve`.
|
||||
@@ -48,7 +48,7 @@ export class ViewTransactionComponent {
|
||||
private router: Router,
|
||||
public dialog: MatDialog,
|
||||
private settingsService: SettingsService) {
|
||||
this.route.data.subscribe((data: { savingsAccountTransaction: any,transactionDatatables:any}) => {
|
||||
this.route.data.subscribe((data: { savingsAccountTransaction: any, transactionDatatables: any}) => {
|
||||
this.accountId = this.route.snapshot.params['savingAccountId'];
|
||||
this.transactionData = data.savingsAccountTransaction;
|
||||
this.entityDatatable = data.transactionDatatables;
|
||||
|
||||
@@ -124,7 +124,7 @@ export class SavingsService {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.get(`/datatables/${datatableName}/${transactionId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param accountId account Id of savings account to get add datatable entry for.
|
||||
* @param datatableName Data Table name.
|
||||
|
||||
Reference in New Issue
Block a user