taxtank-core 0.28.33 → 0.28.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15567,6 +15567,7 @@
15567
15567
  SoleForecastService.prototype.listenEvents = function () {
15568
15568
  this.listenToAddedIncomeSources();
15569
15569
  this.listenToUpdatedIncomeSources();
15570
+ this.listenBusinessCreated();
15570
15571
  };
15571
15572
  /**
15572
15573
  * Listen to EventDispatcherService event related to added Income Sources
@@ -15616,6 +15617,15 @@
15616
15617
  return incomeSource.soleForecasts;
15617
15618
  }).flat();
15618
15619
  };
15620
+ /**
15621
+ * Listen business created because we create sole forests together with business
15622
+ */
15623
+ SoleForecastService.prototype.listenBusinessCreated = function () {
15624
+ var _this = this;
15625
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(function () {
15626
+ _this.resetCache();
15627
+ });
15628
+ };
15619
15629
  return SoleForecastService;
15620
15630
  }(RestService));
15621
15631
  SoleForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });