feat: add make account transfer (transfer-funds) (#1151)
Fixes: #251 #1060
This commit is contained in:
@@ -157,7 +157,8 @@
|
||||
</span>
|
||||
<span *ngIf="!element.status.pendingApproval && !element.status.active && element.status.overpaid">
|
||||
<button class="account-action-button" mat-raised-button color="primary" matTooltip="Transfer Funds"
|
||||
matTooltipPosition="above" *mifosxHasPermission="'DISBURSE_LOAN'">
|
||||
matTooltipPosition="above" *mifosxHasPermission="'DISBURSE_LOAN'"
|
||||
(click)="routeEdit($event); routeTransferFund(element.id)">
|
||||
<i class="fa fa-exchange"></i>
|
||||
</button>
|
||||
</span>
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user