taxtank-core 0.12.2 → 0.12.3

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.
@@ -9309,7 +9309,11 @@
9309
9309
  */
9310
9310
  TransactionAllocationService.prototype.onTransactionsCreated = function () {
9311
9311
  var _this = this;
9312
- this.eventDispatcherService.on(exports.AppEventTypeEnum.TRANSACTIONS_CREATED).subscribe(function () {
9312
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.TRANSACTIONS_CREATED).subscribe(function (transactions) {
9313
+ // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
9314
+ if (transactions[0].isTransfer) {
9315
+ return;
9316
+ }
9313
9317
  // Update allocations cache to synchronize data and fire subscriptions
9314
9318
  _this.resetCache();
9315
9319
  });
@@ -9320,6 +9324,7 @@
9320
9324
  TransactionAllocationService.prototype.onDepreciationCreated = function () {
9321
9325
  var _this = this;
9322
9326
  this.eventDispatcherService.on(exports.AppEventTypeEnum.DEPRECIATIONS_CREATED).subscribe(function () {
9327
+ // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time depreciations changed
9323
9328
  // Update allocations cache to synchronize data and fire subscriptions
9324
9329
  _this.resetCache();
9325
9330
  });
@@ -9330,6 +9335,7 @@
9330
9335
  TransactionAllocationService.prototype.onTransactionDeleted = function () {
9331
9336
  var _this = this;
9332
9337
  this.eventDispatcherService.on(exports.AppEventTypeEnum.TRANSACTION_DELETED).subscribe(function () {
9338
+ // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
9333
9339
  // Update allocations cache to synchronize data and fire subscriptions
9334
9340
  _this.resetCache();
9335
9341
  });