taxtank-core 0.10.1 → 0.10.2
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 +2 -2
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/endpoint/endpoints.const.js +2 -2
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +2 -2
- package/fesm2015/taxtank-core.js +2 -2
- package/fesm2015/taxtank-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
CLIENT_MOVEMENTS_GET: new Endpoint('GET', '\\/client-movements'),
|
|
846
846
|
CLIENT_MOVEMENTS_POST: new Endpoint('POST', '\\/client-movements'),
|
|
847
847
|
COUNTRIES_GET: new Endpoint('GET', '\\/countries'),
|
|
848
|
-
DEPRECIATIONS_CLOSING_GET: new Endpoint('GET', '\\/depreciations\\/\\
|
|
848
|
+
DEPRECIATIONS_CLOSING_GET: new Endpoint('GET', '\\/depreciations\\/\\opening-balance\.\*'),
|
|
849
849
|
DEPRECIATIONS_GET: new Endpoint('GET', '\\/depreciations'),
|
|
850
850
|
DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
|
|
851
851
|
DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
|
|
@@ -9816,7 +9816,7 @@
|
|
|
9816
9816
|
}));
|
|
9817
9817
|
};
|
|
9818
9818
|
DepreciationService.prototype.getOpenBalance = function (depreciation) {
|
|
9819
|
-
return this.http.post(this.environment.apiV2 + "/" + this.url + "/
|
|
9819
|
+
return this.http.post(this.environment.apiV2 + "/" + this.url + "/opening-balance?financialYear=" + new FinancialYear().year, depreciation)
|
|
9820
9820
|
.pipe(operators.map(function (response) {
|
|
9821
9821
|
return response || 0;
|
|
9822
9822
|
}));
|