feat: add make account transfer (transfer-funds) (#1151)

Fixes: #251 #1060
This commit is contained in:
Muskan Khedia
2020-07-23 12:12:45 +05:30
committed by GitHub
parent 55280eae2a
commit 63a9e46fc2
16 changed files with 497 additions and 49 deletions
@@ -38,7 +38,8 @@ export class GeneralTabComponent {
constructor(
private route: ActivatedRoute,
private clientService: ClientsService
private clientService: ClientsService,
private router: Router
) {
this.route.data.subscribe((data: { clientAccountsData: any, clientChargesData: any, clientSummary: any }) => {
this.clientAccountData = data.clientAccountsData;
@@ -101,5 +102,11 @@ export class GeneralTabComponent {
$event.stopPropagation();
}
routeTransferFund(loanId: any) {
console.log('loanId: ', loanId);
const queryParams: any = { loanId: loanId, accountType: 'fromloans' };
this.router.navigate(['../', 'loans', loanId, 'transfer-funds', 'make-account-transfer'], { relativeTo: this.route, queryParams: queryParams });
}
}