@colijnit/transaction 255.1.16 → 255.1.17

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.
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "255.1.16";
37
- this.publishDate = "19-8-2024 15:35:38";
36
+ this.symVer = "255.1.17";
37
+ this.publishDate = "21-8-2024 13:01:28";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -18120,7 +18120,6 @@
18120
18120
  return this._relation;
18121
18121
  },
18122
18122
  set: function (value) {
18123
- var _a, _b;
18124
18123
  if (this._relation && value && this._relation.relationId && value.relationId && this._relation.relationId === value.relationId) {
18125
18124
  return;
18126
18125
  }
@@ -18132,8 +18131,8 @@
18132
18131
  }
18133
18132
  if (this._relation instanceof customerFullObject_bo.CustomerFullObject) {
18134
18133
  this.customerGroup = this._relation.customerGroup;
18135
- this.customerLanguage = (_a = this._relation.language) !== null && _a !== void 0 ? _a : undefined;
18136
- this.customerTitle = (_b = this._relation.titleId) !== null && _b !== void 0 ? _b : undefined;
18134
+ this.customerLanguage = this._relation.language;
18135
+ this.customerTitle = this._relation.titleId;
18137
18136
  }
18138
18137
  this.address = this._getFirstActiveAddressOrCreateNew(this._relation);
18139
18138
  if (this.address) {
@@ -18166,7 +18165,7 @@
18166
18165
  CheckoutOverviewRelationEditComponent.prototype.ngOnInit = function () {
18167
18166
  return __awaiter(this, void 0, void 0, function () {
18168
18167
  var _this = this;
18169
- return __generator(this, function (_c) {
18168
+ return __generator(this, function (_a) {
18170
18169
  this._suggestionsService.init(this._relationKind);
18171
18170
  this._subs.push(this._screenConfigService.configSet.subscribe(function (configObjects) {
18172
18171
  if (configObjects && configObjects.length > 0) {
@@ -18211,13 +18210,13 @@
18211
18210
  CheckoutOverviewRelationEditComponent.prototype.onRelationSuggestionClick = function (relationSuggested) {
18212
18211
  return __awaiter(this, void 0, void 0, function () {
18213
18212
  var lockResult, suggestedRelation;
18214
- return __generator(this, function (_c) {
18215
- switch (_c.label) {
18213
+ return __generator(this, function (_a) {
18214
+ switch (_a.label) {
18216
18215
  case 0:
18217
18216
  if (!relationSuggested) return [3 /*break*/, 4];
18218
18217
  return [4 /*yield*/, this._relationService.lockRelation(relationSuggested.relationType, parseInt(relationSuggested.relationNr, 0))];
18219
18218
  case 1:
18220
- lockResult = _c.sent();
18219
+ lockResult = _a.sent();
18221
18220
  if (!!lockResult.success) return [3 /*break*/, 2];
18222
18221
  this._dialogService.showError('RELATION_ALREADY_LOCKED', true, lockResult.messages[0].message);
18223
18222
  return [3 /*break*/, 4];
@@ -18225,13 +18224,13 @@
18225
18224
  this._suggestionsService.hideSidebar();
18226
18225
  return [4 /*yield*/, this._relationService.getRelation(relationSuggested.relationType, parseInt(relationSuggested.relationNr))];
18227
18226
  case 3:
18228
- suggestedRelation = _c.sent();
18227
+ suggestedRelation = _a.sent();
18229
18228
  if (suggestedRelation && suggestedRelation.addresses && suggestedRelation.addresses.length > 0) {
18230
18229
  suggestedRelation.addresses.sort(function (a, b) { return a.sequence < b.sequence ? -1 : 1; });
18231
18230
  }
18232
18231
  this.relation = suggestedRelation;
18233
18232
  this.relationChange.next(this.relation);
18234
- _c.label = 4;
18233
+ _a.label = 4;
18235
18234
  case 4: return [2 /*return*/];
18236
18235
  }
18237
18236
  });
@@ -18334,15 +18333,15 @@
18334
18333
  CheckoutOverviewRelationEditComponent.prototype._setCountryNameToAddress = function (address) {
18335
18334
  return __awaiter(this, void 0, void 0, function () {
18336
18335
  var country;
18337
- return __generator(this, function (_c) {
18338
- switch (_c.label) {
18336
+ return __generator(this, function (_a) {
18337
+ switch (_a.label) {
18339
18338
  case 0:
18340
18339
  if (!(address.countryId && !address.countryName)) return [3 /*break*/, 2];
18341
18340
  return [4 /*yield*/, this.service.getCountry(address.countryId)];
18342
18341
  case 1:
18343
- country = _c.sent();
18342
+ country = _a.sent();
18344
18343
  address.countryName = country.description;
18345
- _c.label = 2;
18344
+ _a.label = 2;
18346
18345
  case 2: return [2 /*return*/];
18347
18346
  }
18348
18347
  });