taxtank-core 1.0.4 → 1.0.6

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.
@@ -6782,7 +6782,7 @@ class Depreciation extends Depreciation$1 {
6782
6782
  && !this.isSBPCalculation()
6783
6783
  && this.isDiminishing()
6784
6784
  && !this.isWrittenOff()
6785
- && this.currentYearForecast.closeBalance <= Depreciation.lowValuePoolThreshold;
6785
+ && this.currentYearForecast.openBalance <= Depreciation.lowValuePoolThreshold;
6786
6786
  }
6787
6787
  isSBP() {
6788
6788
  return this.isAsset() && this.isSBPCalculation() && !this.isWrittenOff();
@@ -6888,7 +6888,7 @@ __decorate([
6888
6888
  // @TODO refactor
6889
6889
  value.forEach((forecast) => {
6890
6890
  forecast.isLVP =
6891
- forecast.closeBalance < 1000 &&
6891
+ forecast.openBalance < 1000 &&
6892
6892
  obj.calculation === DepreciationCalculationEnum.DIMINISHING &&
6893
6893
  obj.type === DepreciationTypeEnum.PLANT_EQUIPMENT &&
6894
6894
  !(obj.amount > Depreciation.writtenOffThreshold && obj.amount < Depreciation.lowValuePoolThreshold) &&
@@ -13428,11 +13428,11 @@ class RestService {
13428
13428
  /**
13429
13429
  * get list of base class instances directly from backend
13430
13430
  */
13431
- fetch(path = this.apiUrl, cache = true) {
13431
+ fetch(path = this.apiUrl, cache = true, params = {}) {
13432
13432
  if (cache) {
13433
13433
  this.setCache([]);
13434
13434
  }
13435
- return this.http.get(path)
13435
+ return this.http.get(path, { params: params })
13436
13436
  .pipe(map((response) => {
13437
13437
  const items = response.map((item) => this.createModelInstance(item));
13438
13438
  if (cache) {
@@ -14439,6 +14439,13 @@ var PropertyMessagesEnum;
14439
14439
  PropertyMessagesEnum["SHARESIGHT_DISCONNECTED"] = "Property disconnected from sharesight";
14440
14440
  })(PropertyMessagesEnum || (PropertyMessagesEnum = {}));
14441
14441
 
14442
+ var PropertyCorelogicStatsConfidenceTypeEnum;
14443
+ (function (PropertyCorelogicStatsConfidenceTypeEnum) {
14444
+ PropertyCorelogicStatsConfidenceTypeEnum["LOW"] = "LOW";
14445
+ PropertyCorelogicStatsConfidenceTypeEnum["MEDIUM"] = "MEDIUM";
14446
+ PropertyCorelogicStatsConfidenceTypeEnum["HIGH"] = "HIGH";
14447
+ })(PropertyCorelogicStatsConfidenceTypeEnum || (PropertyCorelogicStatsConfidenceTypeEnum = {}));
14448
+
14442
14449
  /**
14443
14450
  * @Todo Alex remove functionality related to PropertyShare
14444
14451
  * @TODO Alex (TT-1777): replace all event listeners with the new this.listen()
@@ -14548,7 +14555,7 @@ class PropertyService extends RestService$1 {
14548
14555
  return stats;
14549
14556
  }), catchError((error) => {
14550
14557
  this.handleError(error);
14551
- return of({ growthPercent: 0, lowMarketValue: 0, marketValue: 0, highMarketValue: 0 });
14558
+ return of({ growthPercent: 0, lowMarketValue: 0, marketValue: 0, highMarketValue: 0, confidence: PropertyCorelogicStatsConfidenceTypeEnum.LOW });
14552
14559
  }));
14553
14560
  }
14554
14561
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: PropertyService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -15821,8 +15828,8 @@ class TransactionService extends RestService {
15821
15828
  getPropertyHoldingCosts(propertyId) {
15822
15829
  return this.fetch(`${this.environment.apiV2}/properties/${propertyId}/holding-costs`, false);
15823
15830
  }
15824
- getWithoutTaxFreeProperty() {
15825
- return this.fetch(`${this.apiUrl}?excludeTaxFreePropertyCategories`, false).pipe(map(transactions => this.groupByParent(transactions)));
15831
+ getWithoutTaxFreeProperty(categories = ['']) {
15832
+ return this.fetch(`${this.apiUrl}`, false, { excludeTaxFreePropertyCategories: categories }).pipe(map(transactions => this.groupByParent(transactions)));
15826
15833
  }
15827
15834
  groupByParent(transactions) {
15828
15835
  transactions.forEach((transaction) => {
@@ -20073,7 +20080,7 @@ class PropertyTransactionReportService {
20073
20080
  */
20074
20081
  getTransactions() {
20075
20082
  // @TODO TT-4886
20076
- return this.transactionService.getWithoutTaxFreeProperty().pipe(map((transactions) => new TransactionCollection(transactions)
20083
+ return this.transactionService.getWithoutTaxFreeProperty([PropertyCategoryListEnum.VACANT_LAND]).pipe(map((transactions) => new TransactionCollection(transactions)
20077
20084
  .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
20078
20085
  .filter(transaction => transaction.claimPercent > 0)));
20079
20086
  }