feat: add view transactions history (#1157)

Fixes: #1156
This commit is contained in:
Muskan Khedia
2020-07-26 15:25:04 +05:30
committed by GitHub
parent 67a836e3d6
commit 6ad1335d93
14 changed files with 245 additions and 14 deletions
@@ -60,7 +60,9 @@ export class EditStandingInstructionsComponent implements OnInit {
this.createEditStandingInstructionsForm();
const presentDate = new Date();
const n = presentDate.getFullYear();
this.standingInstructionsData.recurrenceOnMonthDay.push(n);
if (this.standingInstructionsData.recurrenceOnMonthDay) {
this.standingInstructionsData.recurrenceOnMonthDay.push(n);
}
this.editStandingInstructionsForm.patchValue({
'name': this.standingInstructionsData.name,
'applicant': this.standingInstructionsData.fromClient.displayName,
@@ -81,7 +83,7 @@ export class EditStandingInstructionsComponent implements OnInit {
'recurrenceType': this.standingInstructionsData.recurrenceType.id,
'recurrenceInterval': this.standingInstructionsData.recurrenceInterval,
'recurrenceFrequency': this.standingInstructionsData.recurrenceFrequency.id,
'recurrenceOnMonthDay': new Date(this.standingInstructionsData.recurrenceOnMonthDay)
'recurrenceOnMonthDay': this.standingInstructionsData.recurrenceOnMonthDay && new Date(this.standingInstructionsData.recurrenceOnMonthDay)
});
}