taxtank-core 3.0.31 → 3.0.33

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.
@@ -9128,8 +9128,14 @@ class PropertyReportItem extends AbstractModel {
9128
9128
  this.subCode = chartAccounts.taxReturnItem?.subCode;
9129
9129
  this.description = chartAccounts.name;
9130
9130
  }
9131
+ /**
9132
+ * @TODO remove after tests
9133
+ */
9134
+ get claimAmount() {
9135
+ return this.amount;
9136
+ }
9131
9137
  get shareClaimAmount() {
9132
- return this.claimAmount * (this.claimPercent * this.sharePercent / 10000);
9138
+ return this.claimAmount * (this.sharePercent * this.claimPercent / 10000);
9133
9139
  }
9134
9140
  isIncome() {
9135
9141
  return CHART_ACCOUNTS_CATEGORIES.income.includes(this.chartAccounts.category);
@@ -9156,9 +9162,6 @@ class PropertyReportItemDepreciation extends PropertyReportItem {
9156
9162
  this.amount = Math.abs(depreciations.getCurrentYearForecastAmount(dateRange));
9157
9163
  this.description = DEPRECIATION_TYPE_LABELS[depreciations.first.type];
9158
9164
  }
9159
- get claimAmount() {
9160
- return round(this.amount * (this.claimPercent / 100), 2);
9161
- }
9162
9165
  }
9163
9166
 
9164
9167
  /**
@@ -9172,12 +9175,6 @@ class PropertyReportItemTransaction extends PropertyReportItem {
9172
9175
  this.amount = Math.abs(transactions.sumBy('grossAmount'));
9173
9176
  this.description = chartAccounts.name;
9174
9177
  }
9175
- /**
9176
- * @TODO claimAmount from backend shouldn't include share%(sharedClaimAmount should), the method is workaround
9177
- */
9178
- get claimAmount() {
9179
- return Math.abs(this.transactions.reduce((sum, transaction) => sum + transaction.grossAmount * (transaction.chartAccounts.taxablePercent / 100)));
9180
- }
9181
9178
  }
9182
9179
 
9183
9180
  /**