feat: add recurring deposit action (add charge) (#1018)

Fixes: #1015
This commit is contained in:
Muskan Khedia
2020-07-07 22:21:41 +05:30
committed by GitHub
parent c388e767b6
commit 29c9cf38f1
13 changed files with 286 additions and 8 deletions
@@ -13,7 +13,7 @@ import { ActivatedRoute } from '@angular/router';
})
export class ChargesTabComponent implements OnInit {
/** Fixed Deposits Account Data */
/** Recurring Deposits Account Data */
recurringDepositsAccountData: any;
/** Charges Data */
chargesData: any[];
@@ -40,7 +40,7 @@ export class ChargesTabComponent implements OnInit {
@ViewChild('chargesTable') chargesTableRef: MatTable<Element>;
/**
* Retrieves Fixed Deposits Account Data from `resolve`.
* Retrieves Recurring Deposits Account Data from `resolve`.
* @param {ActivatedRoute} route Activated Route.
*/
constructor(private route: ActivatedRoute) {
@@ -57,7 +57,7 @@ export class MultiRowComponent implements OnInit, OnChanges {
private datePipe: DatePipe,
private savingsService: SavingsService,
private dialog: MatDialog) {
this.accountId = this.route.parent.parent.snapshot.paramMap.get('fixedDepositAccountId');
this.accountId = this.route.parent.parent.snapshot.paramMap.get('recurringDepositAccountId');
}
/**
@@ -48,7 +48,7 @@ export class SingleRowComponent implements OnInit {
private datePipe: DatePipe,
private dialog: MatDialog,
private savingsService: SavingsService) {
this.accountId = this.route.parent.parent.snapshot.paramMap.get('fixedDepositAccountId');
this.accountId = this.route.parent.parent.snapshot.paramMap.get('recurringDepositAccountId');
}
/**
@@ -81,6 +81,7 @@ export class RecurringDepositsAccountViewComponent implements OnInit {
case 'Approve':
case 'Reject':
case 'Undo Approval':
case 'Add Charge':
case 'Withdraw By Client':
this.router.navigate([`actions/${name}`], { relativeTo: this.route });
break;