feat: add edit recurring deposit account (#1023)

Fixes: #1017
This commit is contained in:
Muskan Khedia
2020-07-08 12:57:21 +05:30
committed by GitHub
parent 74b219fe00
commit fc2b352311
16 changed files with 438 additions and 18 deletions
@@ -120,7 +120,7 @@ export class CreateRecurringDepositsAccountComponent implements OnInit {
charges: this.recurringDepositAccount.charges.map((charge: any) => ({
chargeId: charge.id,
amount: charge.amount,
dueDate: charge.dueDate,
dueDate: charge.dueDate && this.datePipe.transform(charge.dueDate, dateFormat),
feeOnMonthDay: charge.feeOnMonthDay,
feeInterval: charge.feeInterval
})),
@@ -131,7 +131,6 @@ export class CreateRecurringDepositsAccountComponent implements OnInit {
monthDayFormat,
locale
};
console.log('daaa: ', recurringDepositAccount);
this.recurringDepositsService.createRecurringDepositAccount(recurringDepositAccount).subscribe((response: any) => {
this.router.navigate(['../', response.resourceId], { relativeTo: this.route });