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.
- package/bundles/taxtank-core.umd.js +10 -0
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +10 -1
- package/fesm2015/taxtank-core.js +9 -0
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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 });
|