ngOnInit() {
     this.isSaving = false;
     this.activatedRoute.data.subscribe(({ operation }) => {
         this.operation = operation;
     });
     this.bankAccountService.query().subscribe(
         (res: HttpResponse<IBankAccount[]>) => {
             this.bankaccounts = res.body;
         },
         (res: HttpErrorResponse) => this.onError(res.message)
     );
     this.labelService.query().subscribe(
         (res: HttpResponse<ILabel[]>) => {
             this.labels = res.body;
         },
         (res: HttpErrorResponse) => this.onError(res.message)
     );
 }
 ngOnInit() {
     this.isSaving = false;
     this.activatedRoute.data.subscribe(({ operation }) => {
         this.operation = operation;
         this.date = this.operation.date != null ? this.operation.date.format(DATE_TIME_FORMAT) : null;
     });
     this.bankAccountService
         .query()
         .pipe(
             filter((mayBeOk: HttpResponse<IBankAccount[]>) => mayBeOk.ok),
             map((response: HttpResponse<IBankAccount[]>) => response.body)
         )
         .subscribe((res: IBankAccount[]) => (this.bankaccounts = res), (res: HttpErrorResponse) => this.onError(res.message));
     this.labelService
         .query()
         .pipe(
             filter((mayBeOk: HttpResponse<ILabel[]>) => mayBeOk.ok),
             map((response: HttpResponse<ILabel[]>) => response.body)
         )
         .subscribe((res: ILabel[]) => (this.labels = res), (res: HttpErrorResponse) => this.onError(res.message));
 }