taxtank-core 1.0.52 → 1.0.53

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.
@@ -7842,8 +7842,9 @@ class MyTaxDeductions {
7842
7842
  setOtherWorkRelatedExpensesTotalAmount() {
7843
7843
  const otherIncomeRelatedExpenses = this.transactions
7844
7844
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.otherIncomeRelatedExpenses);
7845
- this.otherWorkRelatedExpensesTotalAmount = -Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount')) -
7846
- this.depreciations.filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.TOOLS_EQUIPMENT).sumBy('claimAmount');
7845
+ this.otherWorkRelatedExpensesTotalAmount = -Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount'))
7846
+ - this.depreciations.filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.TOOLS_EQUIPMENT).sumBy('claimAmount')
7847
+ + this.depreciations.getByTankType(TankTypeEnum.WORK).getLVPDepreciations().sumBy('claimAmount');
7847
7848
  }
7848
7849
  calculateWorkRelatedSelfEducationTotalAmount() {
7849
7850
  return this.workRelatedSelfEducationExpenses ? this.workRelatedSelfEducationExpenses.sumBy('claimAmount') - MyTaxDeductions.selfEducationNotDeductibleAmount : 0;
@@ -8097,11 +8098,7 @@ class MyTaxRent {
8097
8098
  constructor(transactions, depreciations, taxSummary) {
8098
8099
  this.propertyExpenses = transactions.getPropertyTransactions().getExpenseTransactions();
8099
8100
  this.taxSummaryPropertySection = taxSummary.property;
8100
- this.grossRentAmount = transactions
8101
- .getPropertyTransactions()
8102
- .getIncomeTransactions()
8103
- .filterBy('chartAccounts.id', [ChartAccountsListEnum.RENTAL_INCOME, ChartAccountsListEnum.OTHER_RENTAL_INCOME])
8104
- .getGrossClaimAmountWithoutGst();
8101
+ this.grossRentAmount = this.taxSummaryPropertySection.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.property.income, TaxSummarySectionEnum.PROPERTY_TANK);
8105
8102
  this.interestDeductionsAmount = transactions.getInterestTransactions().sumBy('claimAmount');
8106
8103
  this.capitalWorksDeductionsAmount = -depreciations.getCapitalDepreciations().sumBy('claimAmount');
8107
8104
  this.otherRentalDeductionsAmount = this.calculateOtherRentalDeductionsAmount();
@@ -11979,6 +11976,7 @@ let RestService$1 = class RestService extends DataService {
11979
11976
  return;
11980
11977
  }
11981
11978
  this.sseService.on(this.mercureTopic).pipe(map((response) => {
11979
+ console.log(response);
11982
11980
  let model = this.createModelInstance(response);
11983
11981
  let method;
11984
11982
  if (model.id) {
@@ -11991,6 +11989,7 @@ let RestService$1 = class RestService extends DataService {
11991
11989
  }
11992
11990
  return { method, model };
11993
11991
  })).subscribe((change) => {
11992
+ console.log(change);
11994
11993
  this.handleResponse([change.model], change.method);
11995
11994
  });
11996
11995
  }
@@ -12719,6 +12718,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
12719
12718
  * Service for work with messages
12720
12719
  */
12721
12720
  class MessageService extends RestService$1 {
12721
+ // mercureTopic = 'messages';
12722
12722
  constructor(environment) {
12723
12723
  super(environment);
12724
12724
  this.environment = environment;
@@ -12726,7 +12726,6 @@ class MessageService extends RestService$1 {
12726
12726
  this.collectionClass = MessageCollection;
12727
12727
  this.endpointUri = 'messages';
12728
12728
  this.disabledMethods = ['postBatch', 'putBatch'];
12729
- this.mercureTopic = 'messages';
12730
12729
  this.listenEvents();
12731
12730
  }
12732
12731
  listenEvents() {
@@ -13288,6 +13287,7 @@ var ClientInviteMessages;
13288
13287
  })(ClientInviteMessages || (ClientInviteMessages = {}));
13289
13288
 
13290
13289
  class ClientMovementService extends RestService$1 {
13290
+ // mercureTopic = 'clientMovements';
13291
13291
  constructor(environment) {
13292
13292
  super(environment);
13293
13293
  this.environment = environment;
@@ -13295,7 +13295,6 @@ class ClientMovementService extends RestService$1 {
13295
13295
  this.collectionClass = ClientMovementCollection;
13296
13296
  this.modelClass = ClientMovement;
13297
13297
  this.disabledMethods = ['postBatch', 'delete', 'deleteBatch'];
13298
- this.mercureTopic = 'clientMovements';
13299
13298
  this.listenEvents();
13300
13299
  }
13301
13300
  listenEvents() {
@@ -15682,8 +15681,8 @@ class TaxSummary {
15682
15681
  }
15683
15682
  get workDepreciations() {
15684
15683
  return this.work.items
15685
- .findByCategory(TaxReturnCategoryListEnum.WORK_OTHER_EXPENSES).details.items
15686
- .find(item => item.name === 'Depreciation')?.amount;
15684
+ .findByCategory(TaxReturnCategoryListEnum.WORK_OTHER_EXPENSES)?.details?.items
15685
+ .find(item => item.name === 'Depreciation')?.amount ?? 0;
15687
15686
  }
15688
15687
  /**
15689
15688
  * Property Net Cash (Cash Position) = Rental Income - expenses - interest
@@ -24176,6 +24175,14 @@ class MyTaxIncomeStatementsForm extends AbstractForm {
24176
24175
  value: incomeStatements.australianSpecialPaymentsTotalTax,
24177
24176
  disabled: true
24178
24177
  }),
24178
+ foreignIncome: new UntypedFormControl({
24179
+ value: incomeStatements.foreignIncome,
24180
+ disabled: true
24181
+ }),
24182
+ foreignTaxWithheld: new UntypedFormControl({
24183
+ value: incomeStatements.foreignTaxWithheld,
24184
+ disabled: true
24185
+ }),
24179
24186
  });
24180
24187
  this.incomeStatements = incomeStatements;
24181
24188
  }