taxtank-core 0.28.102 → 0.28.103

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.
@@ -11454,7 +11454,7 @@
11454
11454
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Business income or losses")
11455
11455
  */
11456
11456
  var MyTaxBusinessIncome = /** @class */ (function () {
11457
- function MyTaxBusinessIncome(psiIncome, soleIncome) {
11457
+ function MyTaxBusinessIncome(psiIncome, soleIncome, taxSummary) {
11458
11458
  this.psiIncomeAmount = psiIncome.filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingListEnum.PSI).amount;
11459
11459
  this.psiVoluntaryAgreementAmount = psiIncome
11460
11460
  .filterBy('chartAccounts.id', exports.ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT)
@@ -11504,9 +11504,7 @@
11504
11504
  this.assessibleGovernmentPaymentsAmount = soleIncome
11505
11505
  .filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS)
11506
11506
  .amount;
11507
- this.otherBusinessIncomeAmount = soleIncome
11508
- .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.otherBusinessIncome)
11509
- .amount;
11507
+ this.otherBusinessIncomeAmount = taxSummary.sole.items.sumByCategories([exports.TaxReturnCategoryListEnum.OTHER_BUSINESS_INCOME]);
11510
11508
  this.nonPrimaryProductionTotalAmount = soleIncome
11511
11509
  .filterBy('chartAccounts.category', exports.ChartAccountsCategoryEnum.SOLE_INCOME)
11512
11510
  .amount;