taxtank-core 2.1.29 → 2.1.31

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.
@@ -613,6 +613,7 @@ let SoleBusiness$1 = class SoleBusiness extends ObservableModel {
613
613
  super(...arguments);
614
614
  this.isPrimaryProduction = false;
615
615
  this.isTaxFree = false;
616
+ this.isGST = false;
616
617
  }
617
618
  static { this.className = 'SoleBusiness'; }
618
619
  };
@@ -5860,6 +5861,12 @@ class SoleBusiness extends SoleBusiness$1 {
5860
5861
  }
5861
5862
  return this.abn;
5862
5863
  }
5864
+ getAddress(soleDetails) {
5865
+ if (!this.isTaxFree) {
5866
+ return soleDetails.address;
5867
+ }
5868
+ return this.address;
5869
+ }
5863
5870
  getIsGST(soleDetails) {
5864
5871
  if (!this.isTaxFree) {
5865
5872
  return soleDetails.isGST;
@@ -5903,6 +5910,9 @@ __decorate([
5903
5910
  __decorate([
5904
5911
  Type(() => AppFile)
5905
5912
  ], SoleBusiness.prototype, "file", void 0);
5913
+ __decorate([
5914
+ Type(() => Address)
5915
+ ], SoleBusiness.prototype, "address", void 0);
5906
5916
 
5907
5917
  class SoleBusinessActivity extends SoleBusinessActivity$1 {
5908
5918
  }
@@ -13446,7 +13456,7 @@ class BankTransactionService extends RestService$1 {
13446
13456
  formData.append('file', file);
13447
13457
  return this.http.post(`${this.environment.apiV2}/bank-accounts/${bankAccountId}/bank-transaction-imports`, formData)
13448
13458
  .pipe(map((response) => {
13449
- const result = response
13459
+ const result = response.bankTransactions
13450
13460
  .map((baseTransaction) => plainToClass(BankTransaction, baseTransaction))
13451
13461
  // we are interesting only current fin year bank transactions
13452
13462
  .filter((bankTransaction) => new FinancialYear().includes(bankTransaction.date));
@@ -24825,6 +24835,7 @@ class SoleBusinessForm extends AbstractForm {
24825
24835
  isTaxFree: new FormControl(business.isTaxFree),
24826
24836
  abn: new FormControl(business.abn, requiredLengthValidator(11)),
24827
24837
  isGST: new FormControl(business.isGST),
24838
+ address: new FormControl(business.address),
24828
24839
  }, business);
24829
24840
  this.business = business;
24830
24841
  // User have to create income source with new business.