@colijnit/transaction 12.1.181 → 12.1.182

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.
@@ -31,8 +31,8 @@
31
31
  function Version() {
32
32
  this.name = "@colijnit/transaction";
33
33
  this.description = "Colijn IT transaction package";
34
- this.symVer = "12.1.181";
35
- this.publishDate = "2-1-2024 14:25:17";
34
+ this.symVer = "12.1.182";
35
+ this.publishDate = "3-1-2024 13:14:34";
36
36
  }
37
37
  return Version;
38
38
  }());
@@ -559,6 +559,7 @@
559
559
  var TransactionSettingsOptions = /** @class */ (function () {
560
560
  function TransactionSettingsOptions() {
561
561
  this.searchOnStart = false;
562
+ this.searchOnStartOnce = false;
562
563
  }
563
564
  return TransactionSettingsOptions;
564
565
  }());
@@ -10547,23 +10548,26 @@
10547
10548
  this._setAmount();
10548
10549
  this._checkHeaderStatus();
10549
10550
  this.checkRefTransaction(); // todo: get from the header status
10550
- if (!this.getRelationOnRememberCurrentTransaction) return [3 /*break*/, 5];
10551
- if (!(this.currentTransaction.transactionInfo.relation && this.currentTransaction.transactionInfo.relation.relationId)) return [3 /*break*/, 4];
10551
+ if (!this.getRelationOnRememberCurrentTransaction) return [3 /*break*/, 6];
10552
+ if (!(this.currentTransaction.transactionInfo.relation && this.currentTransaction.transactionInfo.relation.relationId)) return [3 /*break*/, 5];
10552
10553
  if (!(!this.relation || this.relation.relationId !== this.currentTransaction.transactionInfo.relation.relationId)) return [3 /*break*/, 3];
10553
10554
  return [4 /*yield*/, this._getRelation(this.currentTransaction.transactionInfo.relation)];
10554
10555
  case 2:
10555
10556
  _a.sent();
10556
- _a.label = 3;
10557
- case 3: return [3 /*break*/, 5];
10558
- case 4:
10557
+ return [3 /*break*/, 4];
10558
+ case 3:
10559
+ this.relationUpdated.next(this.relation);
10560
+ _a.label = 4;
10561
+ case 4: return [3 /*break*/, 6];
10562
+ case 5:
10559
10563
  this.relation = new customerFullObject_bo.CustomerFullObject();
10560
10564
  this.relation.type = relationNameKind_enum.RelationNameKind.Private;
10561
- _a.label = 5;
10562
- case 5:
10565
+ _a.label = 6;
10566
+ case 6:
10563
10567
  this.transactionUpdated.next(this.currentTransaction);
10564
10568
  this.transactionEventService.transactionSet.next(this.currentTransaction);
10565
10569
  return [4 /*yield*/, this._handleAfterRememberCurrentTransaction()];
10566
- case 6:
10570
+ case 7:
10567
10571
  _a.sent();
10568
10572
  return [2 /*return*/];
10569
10573
  }
@@ -17541,6 +17545,9 @@
17541
17545
  }), this._transactionConnectorService.connectionInitialized.subscribe(function (initialized) {
17542
17546
  if (initialized) {
17543
17547
  if (_this._settingsService.settings.options.searchOnStart) {
17548
+ if (_this._settingsService.settings.options.searchOnStartOnce) {
17549
+ _this._settingsService.settings.options.searchOnStart = false;
17550
+ }
17544
17551
  _this.searchTransactions();
17545
17552
  }
17546
17553
  }
@@ -42970,6 +42977,7 @@
42970
42977
  exports.TransactionSelectSingleCacheService = TransactionSelectSingleCacheService;
42971
42978
  exports.TransactionSelectSingleParameterizedCacheService = TransactionSelectSingleParameterizedCacheService;
42972
42979
  exports.TransactionService = TransactionService;
42980
+ exports.TransactionSettings = TransactionSettings;
42973
42981
  exports.TransactionSettingsService = TransactionSettingsService;
42974
42982
  exports.TransactionStatusbarComponent = TransactionStatusbarComponent;
42975
42983
  exports.TransactionStatusbarModule = TransactionStatusbarModule;