taxtank-core 0.28.100 → 0.28.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.
@@ -11807,29 +11807,6 @@
11807
11807
  return MyTaxDividends;
11808
11808
  }());
11809
11809
 
11810
- var MyTaxEmployeeShareSchemes = /** @class */ (function () {
11811
- function MyTaxEmployeeShareSchemes(transactions) {
11812
- this.transactions = transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.EMPLOYEE_SHARE_SCHEME_INCOME);
11813
- this.eligibleForReductionAmount = this.transactions.getTransactionsMetadata()
11814
- .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.ELIGIBLE_FOR_REDUCTION)
11815
- .sumBy('value');
11816
- this.notEligibleForReductionAmount = this.transactions.getTransactionsMetadata()
11817
- .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
11818
- .sumBy('value');
11819
- this.discountFromDeferredSchemeAmount = this.transactions.getTransactionsMetadata()
11820
- .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
11821
- .sumBy('value');
11822
- this.totalAssessableDiscountAmount = this.transactions.getTransactionsMetadata()
11823
- .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
11824
- .sumBy('value') +
11825
- this.transactions.getTransactionsMetadata()
11826
- .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
11827
- .sumBy('value');
11828
- this.shareSchemesTotalTax = this.transactions.sumBy('tax');
11829
- }
11830
- return MyTaxEmployeeShareSchemes;
11831
- }());
11832
-
11833
11810
  /**
11834
11811
  * @Todo add link to documentation about related fields, add comments to methods
11835
11812
  */
@@ -11983,6 +11960,26 @@
11983
11960
  var MyTaxOtherIncome = /** @class */ (function () {
11984
11961
  function MyTaxOtherIncome(transactions) {
11985
11962
  this.transactions = transactions;
11963
+ this.employeeShareSchemesTransactions = transactions
11964
+ .filterBy('chartAccounts.id', exports.ChartAccountsListEnum.EMPLOYEE_SHARE_SCHEME_INCOME);
11965
+ // Employee Share Schemes data
11966
+ this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
11967
+ .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.ELIGIBLE_FOR_REDUCTION)
11968
+ .sumBy('value');
11969
+ this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
11970
+ .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
11971
+ .sumBy('value');
11972
+ this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
11973
+ .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
11974
+ .sumBy('value');
11975
+ this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
11976
+ .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
11977
+ .sumBy('value') +
11978
+ this.employeeShareSchemesTransactions.getTransactionsMetadata()
11979
+ .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
11980
+ .sumBy('value');
11981
+ this.shareSchemesTotalTax = this.employeeShareSchemesTransactions.sumBy('tax');
11982
+ // Other income data
11986
11983
  this.lumpSumPaymentsInArrearsTransactions = this.transactions
11987
11984
  .filterBy('chartAccounts.id', exports.ChartAccountsListEnum.LUMP_SUM_PAYMENTS_IN_ARREARS);
11988
11985
  this.bonusesTotalAmount = this.transactions
@@ -20402,20 +20399,6 @@
20402
20399
  return MyTaxDividendsForm;
20403
20400
  }(AbstractForm));
20404
20401
 
20405
- var MyTaxEmployeeShareSchemesForm = /** @class */ (function (_super) {
20406
- __extends(MyTaxEmployeeShareSchemesForm, _super);
20407
- function MyTaxEmployeeShareSchemesForm(shareSchemes) {
20408
- return _super.call(this, {
20409
- eligibleForReductionAmount: new forms.FormControl(shareSchemes.eligibleForReductionAmount),
20410
- notEligibleForReductionAmount: new forms.FormControl(shareSchemes.notEligibleForReductionAmount),
20411
- discountFromDeferredSchemeAmount: new forms.FormControl(shareSchemes.discountFromDeferredSchemeAmount),
20412
- totalAssessableDiscountAmount: new forms.FormControl(shareSchemes.totalAssessableDiscountAmount),
20413
- shareSchemesTotalTax: new forms.FormControl(shareSchemes.shareSchemesTotalTax)
20414
- }) || this;
20415
- }
20416
- return MyTaxEmployeeShareSchemesForm;
20417
- }(AbstractForm));
20418
-
20419
20402
  var MyTaxIncomeStatementsForm = /** @class */ (function (_super) {
20420
20403
  __extends(MyTaxIncomeStatementsForm, _super);
20421
20404
  function MyTaxIncomeStatementsForm(incomeStatements, user) {
@@ -20593,6 +20576,11 @@
20593
20576
  __extends(MyTaxOtherIncomeForm, _super);
20594
20577
  function MyTaxOtherIncomeForm(otherIncome) {
20595
20578
  return _super.call(this, {
20579
+ eligibleForReductionAmount: new forms.FormControl(otherIncome.eligibleForReductionAmount),
20580
+ notEligibleForReductionAmount: new forms.FormControl(otherIncome.notEligibleForReductionAmount),
20581
+ discountFromDeferredSchemeAmount: new forms.FormControl(otherIncome.discountFromDeferredSchemeAmount),
20582
+ totalAssessableDiscountAmount: new forms.FormControl(otherIncome.totalAssessableDiscountAmount),
20583
+ shareSchemesTotalTax: new forms.FormControl(otherIncome.shareSchemesTotalTax),
20596
20584
  bonusesTotalAmount: new forms.FormControl({
20597
20585
  value: otherIncome.bonusesTotalAmount,
20598
20586
  disabled: true
@@ -20976,8 +20964,6 @@
20976
20964
  exports.MyTaxDeductionsForm = MyTaxDeductionsForm;
20977
20965
  exports.MyTaxDividends = MyTaxDividends;
20978
20966
  exports.MyTaxDividendsForm = MyTaxDividendsForm;
20979
- exports.MyTaxEmployeeShareSchemes = MyTaxEmployeeShareSchemes;
20980
- exports.MyTaxEmployeeShareSchemesForm = MyTaxEmployeeShareSchemesForm;
20981
20967
  exports.MyTaxEstimate = MyTaxEstimate;
20982
20968
  exports.MyTaxIncomeStatements = MyTaxIncomeStatements;
20983
20969
  exports.MyTaxIncomeStatementsForm = MyTaxIncomeStatementsForm;