@colijnit/transaction 255.1.6 → 255.1.8

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.6";
37
- this.publishDate = "8-8-2024 14:39:49";
36
+ this.symVer = "255.1.8";
37
+ this.publishDate = "9-8-2024 19:35:27";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -21146,7 +21146,8 @@
21146
21146
  this.transactions.length = 0;
21147
21147
  };
21148
21148
  TransactionSearchService.prototype._resetRequest = function () {
21149
- this.searchRequest = this._settingsService.settings.transactionParameters;
21149
+ //Object.assign(new TransactionSettings(), this.settings, obj);
21150
+ this.searchRequest = Object.assign(new TransactionSettings(), this._settingsService.settings.transactionParameters);
21150
21151
  this._settingsService.settings.tempTransactionParameters = undefined;
21151
21152
  };
21152
21153
  return TransactionSearchService;
@@ -23117,7 +23118,7 @@
23117
23118
  TransactionReceiveGoodsLineComponent.decorators = [
23118
23119
  { type: i0.Component, args: [{
23119
23120
  selector: "co-transaction-receive-goods-line",
23120
- template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"transactionLine.selected\"\n [actionButtons]=\"false\"\n (checkboxValueChanged)=\"transactionLine.selected = $event\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'STATUS' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button\n *ngIf=\"transactionLine.isLocationRequired\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [transactionLine]=\"transactionLine\">\n </co-transaction-line-warehouse-location-button>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\" *ngIf=\"isFirst\"></span>\n <co-input-text\n [model]=\"transactionLine.amount\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <span class=\"transaction-field-label\" [textContent]=\"'TOTALS_AND_DISCOUNT' | localize\" *ngIf=\"isFirst\"></span>\n <co-input-text class=\"side-panel-input\"\n *ngIf=\"transactionLine.isBatchNrRequired\"\n [(model)]=\"transactionLine.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"true\"\n [required]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n <div class=\"transaction-line-totals\">\n <co-transaction-print-package-sticker\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-print-package-sticker>\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"\n [(model)]=\"transactionLine.articleLineStatus.quantityToReceive\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLine.amount - lineQuantityReceived\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartFlatbedBoxesRegular)\"\n [readonly]=\"readonly || lineQuantityReceived === transactionLine.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
23121
+ template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLine.selected = $event\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'STATUS' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button\n *ngIf=\"transactionLine.isLocationRequired\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [transactionLine]=\"transactionLine\">\n </co-transaction-line-warehouse-location-button>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\" *ngIf=\"isFirst\"></span>\n <co-input-text\n [model]=\"transactionLine.amount\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <span class=\"transaction-field-label\" [textContent]=\"'TOTALS_AND_DISCOUNT' | localize\" *ngIf=\"isFirst\"></span>\n <co-input-text class=\"side-panel-input\"\n *ngIf=\"transactionLine.isBatchNrRequired\"\n [(model)]=\"transactionLine.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"true\"\n [required]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n <div class=\"transaction-line-totals\">\n <co-transaction-print-package-sticker\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-print-package-sticker>\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"\n [(model)]=\"transactionLine.articleLineStatus.quantityToReceive\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLine.amount - lineQuantityReceived\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartFlatbedBoxesRegular)\"\n [readonly]=\"readonly || lineQuantityReceived === transactionLine.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
23121
23122
  encapsulation: i0.ViewEncapsulation.None,
23122
23123
  changeDetection: i0.ChangeDetectionStrategy.OnPush
23123
23124
  },] }
@@ -38172,6 +38173,7 @@
38172
38173
  };
38173
38174
  TransactionHeaderPopupCreateServiceComponent.prototype.closeTransactionPopup = function () {
38174
38175
  this.transactionSearchService.transactionType = transactionKind_enum.TransactionKind.ServiceOrder;
38176
+ this.transactionSearchService.resetFilters();
38175
38177
  this.showTransLinePopup = false;
38176
38178
  };
38177
38179
  TransactionHeaderPopupCreateServiceComponent.prototype.handleCatalogArticleClick = function (article) {
@@ -50237,6 +50239,7 @@
50237
50239
  _this.priorityDomainColl = [];
50238
50240
  _this.causeCodeColl = [];
50239
50241
  _this.entryTypeColl = [];
50242
+ _this.serviceMessageModel = '';
50240
50243
  _this.documents = [];
50241
50244
  _this.activities = [];
50242
50245
  _this.showActivityHeader = false;
@@ -50264,7 +50267,7 @@
50264
50267
  return [4 /*yield*/, this.transactionService.getEntryTypes("NL")];
50265
50268
  case 3:
50266
50269
  _c.entryTypeColl = _d.sent();
50267
- this.serviceMessageModel = this.transactionServiceInfo.reportMessage;
50270
+ this.serviceMessageModel = this.transactionServiceInfo.reportMessage ? this.transactionServiceInfo.reportMessage : '';
50268
50271
  this.priorityModel = this.priorityDomainColl.find(function (p) { return p.codeAsNumber === _this.transactionServiceInfo.priority; });
50269
50272
  this.causeCodeModel = this.causeCodeColl.find(function (c) { return c.causeCode === _this.transactionServiceInfo.causeCode; });
50270
50273
  this.entryTypeModel = this.entryTypeColl.find(function (e) { return e.code === _this.transactionServiceInfo.entryType; });
@@ -50381,7 +50384,11 @@
50381
50384
  switch (_a.label) {
50382
50385
  case 0:
50383
50386
  if (this.transactionServiceInfo.reportMessage !== this.serviceMessageModel) {
50384
- this.transactionServiceInfo.reportMessage = this.serviceMessageModel;
50387
+ if (!(this.serviceMessageModel === null) && !(this.serviceMessageModel === undefined))
50388
+ this.transactionServiceInfo.reportMessage = this.serviceMessageModel;
50389
+ else {
50390
+ this.transactionServiceInfo.reportMessage = '';
50391
+ }
50385
50392
  }
50386
50393
  return [4 /*yield*/, this.transactionService.updateServiceHeaderReportMessage(this.transactionServiceInfo.reportMessage, true)];
50387
50394
  case 1: