taxtank-core 0.28.33 → 0.28.35
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 +14 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/sole/sole-business-loss.js +7 -1
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +10 -1
- package/fesm2015/taxtank-core.js +14 -0
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/sole/sole-business-loss.d.ts +2 -0
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2777,7 +2777,10 @@
|
|
|
2777
2777
|
var SoleBusinessLoss = /** @class */ (function (_super) {
|
|
2778
2778
|
__extends(SoleBusinessLoss, _super);
|
|
2779
2779
|
function SoleBusinessLoss() {
|
|
2780
|
-
|
|
2780
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2781
|
+
_this.openBalance = 0;
|
|
2782
|
+
_this.financialYear = new FinancialYear().year;
|
|
2783
|
+
return _this;
|
|
2781
2784
|
}
|
|
2782
2785
|
Object.defineProperty(SoleBusinessLoss.prototype, "hasOffset", {
|
|
2783
2786
|
get: function () {
|
|
@@ -15567,6 +15570,7 @@
|
|
|
15567
15570
|
SoleForecastService.prototype.listenEvents = function () {
|
|
15568
15571
|
this.listenToAddedIncomeSources();
|
|
15569
15572
|
this.listenToUpdatedIncomeSources();
|
|
15573
|
+
this.listenBusinessCreated();
|
|
15570
15574
|
};
|
|
15571
15575
|
/**
|
|
15572
15576
|
* Listen to EventDispatcherService event related to added Income Sources
|
|
@@ -15616,6 +15620,15 @@
|
|
|
15616
15620
|
return incomeSource.soleForecasts;
|
|
15617
15621
|
}).flat();
|
|
15618
15622
|
};
|
|
15623
|
+
/**
|
|
15624
|
+
* Listen business created because we create sole forests together with business
|
|
15625
|
+
*/
|
|
15626
|
+
SoleForecastService.prototype.listenBusinessCreated = function () {
|
|
15627
|
+
var _this = this;
|
|
15628
|
+
this.eventDispatcherService.on(exports.AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(function () {
|
|
15629
|
+
_this.resetCache();
|
|
15630
|
+
});
|
|
15631
|
+
};
|
|
15619
15632
|
return SoleForecastService;
|
|
15620
15633
|
}(RestService));
|
|
15621
15634
|
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 });
|