taxtank-core 2.1.49 → 2.1.52

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.
@@ -7628,6 +7628,9 @@ __decorate([
7628
7628
  __decorate([
7629
7629
  Type(() => BankTransaction)
7630
7630
  ], Depreciation.prototype, "bankTransaction", void 0);
7631
+ __decorate([
7632
+ Type(() => SoleBusiness)
7633
+ ], Depreciation.prototype, "business", void 0);
7631
7634
  __decorate([
7632
7635
  Exclude()
7633
7636
  ], Depreciation.prototype, "amountWithGst", null);
@@ -9233,7 +9236,7 @@ class BudgetRuleItemCollection extends Collection {
9233
9236
  return this.first.isIncome();
9234
9237
  }
9235
9238
  get transactions() {
9236
- return new TransactionCollection(this.map(item => item.transactions.toArray()).flat());
9239
+ return new TransactionCollection(uniqBy(this.map(item => item.transactions.toArray()).flat(), 'id'));
9237
9240
  }
9238
9241
  get rules() {
9239
9242
  return new BudgetRuleCollection(this.mapBy('rule'));