taxtank-core 2.1.100 → 2.1.101

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.
@@ -7057,7 +7057,7 @@ class PropertyEquityChartData {
7057
7057
  return bankAccounts.items.reduce((totalSum, bankAccount) => totalSum + (bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.getLastPaymentByYear(year)?.totalOwed || 0)), 0) - offset;
7058
7058
  }
7059
7059
  if (year == this.currentYear) {
7060
- return bankAccounts.items.reduce((totalSum, bankAccount) => totalSum + (bankAccount.getPropertyPercentage(property.id) * (Math.abs(bankAccount.convertedBalance) || 0)), 0) - offset;
7060
+ return Math.abs(bankAccounts.items.reduce((totalSum, bankAccount) => totalSum + bankAccount.getPropertyPercentage(property.id) * (bankAccount.convertedBalance || 0), 0));
7061
7061
  }
7062
7062
  return Math.abs(property.getForecastByYear(year).loanBalance) - offset;
7063
7063
  // @TODO TT-4888 no idea why it was calculated like that
@@ -28317,7 +28317,8 @@ class PropertyForecastForm extends AbstractForm {
28317
28317
  expense: new UntypedFormControl(forecast.expense, Validators.required),
28318
28318
  interest: new UntypedFormControl(forecast.interest, Validators.required),
28319
28319
  depreciation: new UntypedFormControl({ value: forecast.depreciation, disabled: noIncome }, Validators.required),
28320
- claimPercent: new UntypedFormControl({ value: forecast.claimPercent, disabled: !movements.isShared() }, [Validators.min(0), Validators.max(100), Validators.required])
28320
+ claimPercent: new UntypedFormControl({ value: forecast.claimPercent, disabled: !movements.isShared() }, [Validators.min(0), Validators.max(100), Validators.required]),
28321
+ isManual: new UntypedFormControl(true, Validators.required),
28321
28322
  }, forecast);
28322
28323
  }
28323
28324
  }