@colijnit/transaction 256.1.7 → 256.1.9

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.
Files changed (86) hide show
  1. package/bundles/colijnit-transaction.umd.js +352 -185
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/cache/service/transaction-business-object-cache-manager.service.js +1 -1
  5. package/esm2015/lib/cache/service/transaction-select-multiple-parameterized-cache.service.js +1 -1
  6. package/esm2015/lib/cache/service/transaction-select-single-parameterized-cache.service.js +1 -1
  7. package/esm2015/lib/component/core/base/dialog-transaction-base.component.js +2 -1
  8. package/esm2015/lib/component/core/base/transaction-base.component.js +30 -1
  9. package/esm2015/lib/component/core/base/transaction-search-tile-base.component.js +23 -4
  10. package/esm2015/lib/component/quick-send-button/quick-send-button.component.js +3 -2
  11. package/esm2015/lib/component/search/search-filter-panel/search-filter-panel.component.js +10 -4
  12. package/esm2015/lib/component/search/search-header-buttons/search-header-buttons.component.js +13 -4
  13. package/esm2015/lib/component/search/search-view-mode.service.js +1 -9
  14. package/esm2015/lib/component/search/search.component.js +28 -11
  15. package/esm2015/lib/component/transaction/transaction.component.js +6 -2
  16. package/esm2015/lib/component/transaction-button/transaction-button.component.js +8 -5
  17. package/esm2015/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-allocation-button-bar-button.component.js +3 -2
  18. package/esm2015/lib/component/transaction-create-wizard/transaction-create-wizard.component.js +14 -3
  19. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +6 -3
  20. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-method-button/transaction-header-delivery-method-button.component.js +5 -3
  21. package/esm2015/lib/component/transaction-header-fields/transaction-header-deliverydate-definitive-button/transaction-header-deliverydate-definitive-button.component.js +4 -2
  22. package/esm2015/lib/component/transaction-header-fields/transaction-header-remaining-amount.component.js +2 -2
  23. package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +19 -25
  24. package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +1 -1
  25. package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +11 -10
  26. package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +4 -3
  27. package/esm2015/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.js +100 -101
  28. package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.js +13 -5
  29. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.js +4 -1
  30. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -2
  31. package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +8 -5
  32. package/esm2015/lib/component/transaction-line-fields/transaction-line-confirmed-delivery-date-button.component.js +5 -2
  33. package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +5 -3
  34. package/esm2015/lib/component/transaction-line-fields/transaction-line-drop-shipment-button.component.js +3 -14
  35. package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-button.component.js +4 -5
  36. package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +2 -1
  37. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.js +7 -3
  38. package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +3 -1
  39. package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter/transaction-filter.component.js +7 -3
  40. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-pos-order-tile/transaction-search-pos-order-tile.component.js +72 -70
  41. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-line-select-tile/transaction-search-sales-line-select-tile.component.js +20 -17
  42. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +80 -70
  43. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-quotation-tile/transaction-search-sales-quotation-tile.component.js +7 -5
  44. package/esm2015/lib/component/transaction-search/transaction-search.component.js +9 -1
  45. package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.component.js +95 -80
  46. package/esm2015/lib/component/transaction-tags/transaction-tags.component.js +11 -5
  47. package/esm2015/lib/component/transaction-totals/transaction-totals.component.js +7 -3
  48. package/esm2015/lib/service/article.service.js +1 -1
  49. package/esm2015/lib/service/purchase-confirmation.service.js +4 -2
  50. package/esm2015/lib/service/transaction-connector-adapter.service.js +4 -1
  51. package/esm2015/lib/service/transaction-connector.service.js +45 -35
  52. package/esm2015/lib/service/transaction-relation.service.js +5 -4
  53. package/esm2015/lib/service/transaction.service.js +3 -3
  54. package/esm2015/lib/transaction-version.js +3 -3
  55. package/fesm2015/colijnit-transaction.js +620 -452
  56. package/fesm2015/colijnit-transaction.js.map +1 -1
  57. package/lib/cache/service/transaction-business-object-cache-manager.service.d.ts +12 -14
  58. package/lib/cache/service/transaction-select-multiple-parameterized-cache.service.d.ts +2 -2
  59. package/lib/cache/service/transaction-select-single-parameterized-cache.service.d.ts +1 -2
  60. package/lib/component/core/base/transaction-search-tile-base.component.d.ts +10 -4
  61. package/lib/component/search/search-filter-panel/search-filter-panel.component.d.ts +4 -0
  62. package/lib/component/search/search-header-buttons/search-header-buttons.component.d.ts +3 -1
  63. package/lib/component/search/search-view-mode.service.d.ts +0 -1
  64. package/lib/component/search/search.component.d.ts +7 -3
  65. package/lib/component/transaction/transaction.component.d.ts +6 -1
  66. package/lib/component/transaction-button/transaction-button.component.d.ts +3 -1
  67. package/lib/component/transaction-create-wizard/transaction-create-wizard.component.d.ts +4 -1
  68. package/lib/component/transaction-internal/transaction-internal.component.d.ts +6 -1
  69. package/lib/component/transaction-line/transaction-planning-line/style/_layout.scss +0 -2
  70. package/lib/component/transaction-line/transaction-planning-line/style/_theme.scss +1 -3
  71. package/lib/component/transaction-line/transaction-planning-line/style/material.scss +1 -0
  72. package/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.d.ts +2 -3
  73. package/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.d.ts +2 -0
  74. package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +4 -3
  75. package/lib/component/transaction-line-fields/transaction-line-confirmed-delivery-date-button.component.d.ts +1 -0
  76. package/lib/component/transaction-line-fields/transaction-line-description.component.d.ts +1 -0
  77. package/lib/component/transaction-search/transaction-filter/transaction-filter/transaction-filter.component.d.ts +3 -2
  78. package/lib/component/transaction-search/transaction-search-tile/transaction-search-pos-order-tile/transaction-search-pos-order-tile.component.d.ts +3 -1
  79. package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-line-select-tile/transaction-search-sales-line-select-tile.component.d.ts +5 -4
  80. package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.d.ts +6 -2
  81. package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-quotation-tile/transaction-search-sales-quotation-tile.component.d.ts +3 -1
  82. package/lib/component/transaction-search/transaction-search.component.d.ts +2 -0
  83. package/lib/component/transaction-service-overview/transaction-service-overview.component.d.ts +19 -19
  84. package/lib/component/transaction-tags/transaction-tags.component.d.ts +3 -2
  85. package/lib/component/transaction-totals/transaction-totals.component.d.ts +3 -2
  86. package/package.json +1 -1
@@ -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 = "256.1.7";
37
- this.publishDate = "29-10-2024 18:11:52";
36
+ this.symVer = "256.1.9";
37
+ this.publishDate = "6-11-2024 14:22:44";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -2642,6 +2642,9 @@
2642
2642
  case 1:
2643
2643
  result = _a.sent();
2644
2644
  if (result.validationResult && result.validationResult.success) {
2645
+ if (result.resultObject && result.resultObject.fileType === 'UNITYWEB') {
2646
+ return [2 /*return*/, ""];
2647
+ }
2645
2648
  if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
2646
2649
  return [2 /*return*/, imageUtils.ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath)];
2647
2650
  }
@@ -9552,63 +9555,71 @@
9552
9555
  };
9553
9556
  TransactionConnectorService.prototype.getCommissionCodes = function (languageCode) {
9554
9557
  return __awaiter(this, void 0, void 0, function () {
9558
+ var _this = this;
9555
9559
  return __generator(this, function (_a) {
9556
- //const domainName: DomainName = DomainName.CommissionCode;
9557
- //return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9558
- return [2 /*return*/, this._adapterService.getCommissionCodes(languageCode)];
9560
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.CommissionCode, function (languageCode, domainName) {
9561
+ return _this._adapterService.getCommissionCodes(languageCode);
9562
+ }).getValue(languageCode, domainName_enum.DomainName.CommissionCode)];
9559
9563
  });
9560
9564
  });
9561
9565
  };
9562
9566
  TransactionConnectorService.prototype.getInOutCollection = function (languageCode) {
9563
9567
  return __awaiter(this, void 0, void 0, function () {
9568
+ var _this = this;
9564
9569
  return __generator(this, function (_a) {
9565
- //const domainName: DomainName = DomainName.InOutCollection;
9566
- //return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9567
- return [2 /*return*/, this._adapterService.getInOutCollection(languageCode)];
9570
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.InOutCollection, function (languageCode, domainName) {
9571
+ return _this._adapterService.getInOutCollection(languageCode);
9572
+ }).getValue(languageCode, domainName_enum.DomainName.InOutCollection)];
9568
9573
  });
9569
9574
  });
9570
9575
  };
9571
9576
  TransactionConnectorService.prototype.getYesNoCollection = function (languageCode) {
9572
9577
  return __awaiter(this, void 0, void 0, function () {
9578
+ var _this = this;
9573
9579
  return __generator(this, function (_a) {
9574
- //const domainName: DomainName = DomainName.YesNo;
9575
- //return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9576
- return [2 /*return*/, this._adapterService.getYesNoCollection(languageCode)];
9580
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.YesNo, function (languageCode, domainName) {
9581
+ return _this._adapterService.getYesNoCollection(languageCode);
9582
+ }).getValue(languageCode, domainName_enum.DomainName.YesNo)];
9577
9583
  });
9578
9584
  });
9579
9585
  };
9580
9586
  TransactionConnectorService.prototype.getPriceKindCollection = function (languageCode) {
9581
9587
  return __awaiter(this, void 0, void 0, function () {
9588
+ var _this = this;
9582
9589
  return __generator(this, function (_a) {
9583
- //const domainName: DomainName = DomainName.PriceKind;
9584
- //return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9585
- return [2 /*return*/, this._adapterService.getPriceKindCollection(languageCode)];
9590
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.PriceKind, function (languageCode, domainName) {
9591
+ return _this._adapterService.getPriceKindCollection(languageCode);
9592
+ }).getValue(languageCode, domainName_enum.DomainName.PriceKind)];
9586
9593
  });
9587
9594
  });
9588
9595
  };
9589
9596
  TransactionConnectorService.prototype.getPriorityCollection = function (languageCode) {
9590
9597
  return __awaiter(this, void 0, void 0, function () {
9598
+ var _this = this;
9591
9599
  return __generator(this, function (_a) {
9592
- // const domainName: DomainName = DomainName.Priority;
9593
- //return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9594
- return [2 /*return*/, this._adapterService.getPriorityCollection(languageCode)];
9600
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.Priority, function (languageCode, domainName) {
9601
+ return _this._adapterService.getPriorityCollection(languageCode);
9602
+ }).getValue(languageCode, domainName_enum.DomainName.Priority)];
9595
9603
  });
9596
9604
  });
9597
9605
  };
9598
9606
  TransactionConnectorService.prototype.getEntryTypes = function (languageCode) {
9599
- // const domainName: DomainName = DomainName.ServiceCommunicationType;
9600
- //return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9601
- return this._adapterService.getEntryTypes(languageCode);
9602
- //}).getValue(languageCode, domainName);
9607
+ var _this = this;
9608
+ return this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.ServiceCommunicationType, function (languageCode, domainName) {
9609
+ return _this._adapterService.getEntryTypes(languageCode);
9610
+ }).getValue(languageCode, domainName_enum.DomainName.ServiceCommunicationType);
9603
9611
  };
9604
9612
  TransactionConnectorService.prototype.getDomainTypes = function (languageCode) {
9605
- // const domainName: DomainName = DomainName.TransType;
9606
- // return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
9607
- return this._adapterService.getDomainTypes(languageCode);
9608
- //}).getValue(languageCode, domainName);
9613
+ var _this = this;
9614
+ return this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.TransType, function (languageCode, domainName) {
9615
+ return _this._adapterService.getDomainTypes(languageCode);
9616
+ }).getValue(languageCode, domainName_enum.DomainName.TransType);
9609
9617
  };
9610
9618
  TransactionConnectorService.prototype.getCauseCodes = function () {
9611
- return this._adapterService.getCauseCodes();
9619
+ var _this = this;
9620
+ return this._selectMultipleCacheService.requestCache(causeCode_bo.CauseCode, function () {
9621
+ return _this._adapterService.getCauseCodes();
9622
+ }).getValue();
9612
9623
  };
9613
9624
  TransactionConnectorService.prototype.getTransactionArticleWarehouses = function (goodId) {
9614
9625
  return __awaiter(this, void 0, void 0, function () {
@@ -10361,21 +10372,21 @@
10361
10372
  };
10362
10373
  TransactionConnectorService.prototype.getOrderConfirmationDefaultSendMethod = function (relationId) {
10363
10374
  return __awaiter(this, void 0, void 0, function () {
10375
+ var _this = this;
10364
10376
  return __generator(this, function (_a) {
10365
- switch (_a.label) {
10366
- case 0: return [4 /*yield*/, this._adapterService.getOrderConfirmationDefaultSendMethod(relationId)];
10367
- case 1: return [2 /*return*/, _a.sent()];
10368
- }
10377
+ return [2 /*return*/, this._selectSinlgeParameterizedCacheService.requestCache(Number, function (relationId) {
10378
+ return _this._adapterService.getOrderConfirmationDefaultSendMethod(relationId);
10379
+ }).getValue(relationId)];
10369
10380
  });
10370
10381
  });
10371
10382
  };
10372
10383
  TransactionConnectorService.prototype.getDefaultEmailAddressListForOrderConfirmation = function (transactionUUID) {
10373
10384
  return __awaiter(this, void 0, void 0, function () {
10385
+ var _this = this;
10374
10386
  return __generator(this, function (_a) {
10375
- switch (_a.label) {
10376
- case 0: return [4 /*yield*/, this._adapterService.getDefaultEmailAddressListForOrderConfirmation(transactionUUID)];
10377
- case 1: return [2 /*return*/, _a.sent()];
10378
- }
10387
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(String, function (transactionUUID) {
10388
+ return _this._adapterService.getDefaultEmailAddressListForOrderConfirmation(transactionUUID);
10389
+ }).getValue(transactionUUID)];
10379
10390
  });
10380
10391
  });
10381
10392
  };
@@ -11085,11 +11096,12 @@
11085
11096
  };
11086
11097
  TransactionConnectorService.prototype.getTransactionInfo = function (transId, lineNr) {
11087
11098
  return __awaiter(this, void 0, void 0, function () {
11099
+ var _this = this;
11088
11100
  return __generator(this, function (_a) {
11089
- switch (_a.label) {
11090
- case 0: return [4 /*yield*/, this._adapterService.getTransactionInfo(transId, lineNr)];
11091
- case 1: return [2 /*return*/, _a.sent()];
11092
- }
11101
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(transactionInfoHistory_bo.TransactionInfoHistory, function (_a) {
11102
+ var _b = __read(_a, 2), transId = _b[0], lineNr = _b[1];
11103
+ return _this._adapterService.getTransactionInfo(transId, lineNr);
11104
+ }).getValue([transId, lineNr])];
11093
11105
  });
11094
11106
  });
11095
11107
  };
@@ -11135,21 +11147,21 @@
11135
11147
  };
11136
11148
  TransactionConnectorService.prototype.getReportHeadersByTransIdAndLayoutCode = function (transId, documentCode) {
11137
11149
  return __awaiter(this, void 0, void 0, function () {
11150
+ var _this = this;
11138
11151
  return __generator(this, function (_a) {
11139
- switch (_a.label) {
11140
- case 0: return [4 /*yield*/, this._adapterService.getReportHeadersByTransIdAndLayoutCode(transId, documentCode)];
11141
- case 1: return [2 /*return*/, _a.sent()];
11142
- }
11152
+ return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(historicReport_bo.HistoricReport, function (transId, documentCode) {
11153
+ return _this._adapterService.getReportHeadersByTransIdAndLayoutCode(transId, documentCode);
11154
+ }).getValue(transId, documentCode)];
11143
11155
  });
11144
11156
  });
11145
11157
  };
11146
11158
  TransactionConnectorService.prototype.getPackageStickerPrintLayouts = function () {
11147
11159
  return __awaiter(this, void 0, void 0, function () {
11160
+ var _this = this;
11148
11161
  return __generator(this, function (_a) {
11149
- switch (_a.label) {
11150
- case 0: return [4 /*yield*/, this._adapterService.getPackageStickerPrintLayouts()];
11151
- case 1: return [2 /*return*/, _a.sent()];
11152
- }
11162
+ return [2 /*return*/, this._selectMultipleCacheService.requestCache(reportLayoutSelectionPrint_bo.ReportLayoutSelectionPrint, function () {
11163
+ return _this._adapterService.getPackageStickerPrintLayouts();
11164
+ }).getValue()];
11153
11165
  });
11154
11166
  });
11155
11167
  };
@@ -12043,6 +12055,7 @@
12043
12055
  set: function (value) {
12044
12056
  this._cfgName = value;
12045
12057
  this.configSet();
12058
+ this.detectChanges();
12046
12059
  },
12047
12060
  enumerable: false,
12048
12061
  configurable: true
@@ -12058,6 +12071,7 @@
12058
12071
  this.headerReadonly = false;
12059
12072
  this.tooltipMessage = undefined;
12060
12073
  }
12074
+ this.detectChanges();
12061
12075
  },
12062
12076
  enumerable: false,
12063
12077
  configurable: true
@@ -12067,6 +12081,7 @@
12067
12081
  return this._transaction;
12068
12082
  },
12069
12083
  set: function (value) {
12084
+ var shouldDetectChanges = this._transaction !== value;
12070
12085
  this._transaction = value;
12071
12086
  if (this._transaction) {
12072
12087
  if (this._transaction.transactionInfo) {
@@ -12102,6 +12117,9 @@
12102
12117
  this.transactionLines.filter(function (l) { return l.articleLineStatus ? l.articleLineStatus.quantityToInvoice !== 0 : false; }).length > 0 :
12103
12118
  this.transactionLines.filter(function (l) { return l.articleLineStatus ? l.articleLineStatus.quantityToInvoice === 0 : false; }).length === 0;
12104
12119
  }
12120
+ if (shouldDetectChanges) {
12121
+ this.detectChanges();
12122
+ }
12105
12123
  },
12106
12124
  enumerable: false,
12107
12125
  configurable: true
@@ -12111,6 +12129,7 @@
12111
12129
  return this._transactionLine;
12112
12130
  },
12113
12131
  set: function (value) {
12132
+ var shouldDetectChanges = this._transactionLine !== value;
12114
12133
  if (value) {
12115
12134
  this._transactionLine = value;
12116
12135
  if (this._transactionLine.salesUnitDecimals) {
@@ -12148,6 +12167,9 @@
12148
12167
  this.lineQuantityTransportNotification = this._transactionLine.articleLineStatus && this._transactionLine.articleLineStatus.hasOwnProperty('quantityTransportNotification') ? this._transactionLine.articleLineStatus.quantityTransportNotification : 0;
12149
12168
  this.lineQuantityInvoiceControl = this._transactionLine.articleLineStatus && this._transactionLine.articleLineStatus.hasOwnProperty('quantityInvoiceControl') ? this._transactionLine.articleLineStatus.quantityInvoiceControl : 0;
12150
12169
  this.transactionLineSet();
12170
+ if (shouldDetectChanges) {
12171
+ this.detectChanges();
12172
+ }
12151
12173
  }
12152
12174
  },
12153
12175
  enumerable: false,
@@ -12166,6 +12188,7 @@
12166
12188
  // return this._transactionMarginInfo;
12167
12189
  // }
12168
12190
  set: function (value) {
12191
+ var shouldDetectChanges = this._transactionInfo !== value;
12169
12192
  if (value) {
12170
12193
  this.headerReadonly = false;
12171
12194
  this.tooltipMessage = "";
@@ -12186,6 +12209,9 @@
12186
12209
  this.orderLineSets = this._transactionInfo.orderLineSets;
12187
12210
  }
12188
12211
  this.transactionInfoSet();
12212
+ if (shouldDetectChanges) {
12213
+ this.detectChanges();
12214
+ }
12189
12215
  }
12190
12216
  },
12191
12217
  enumerable: false,
@@ -12196,7 +12222,11 @@
12196
12222
  return this._orderLineSets;
12197
12223
  },
12198
12224
  set: function (value) {
12225
+ var shouldDetectChanges = this._orderLineSets !== value;
12199
12226
  this._orderLineSets = value;
12227
+ if (shouldDetectChanges) {
12228
+ this.detectChanges();
12229
+ }
12200
12230
  },
12201
12231
  enumerable: false,
12202
12232
  configurable: true
@@ -12214,9 +12244,13 @@
12214
12244
  return this._transactionServiceInfo ? this._transactionServiceInfo : new TransactionServiceInfo();
12215
12245
  }*/
12216
12246
  set: function (value) {
12247
+ var shouldDetectChanges = this._transactionTotal !== value;
12217
12248
  if (value) {
12218
12249
  this._transactionTotal = value;
12219
12250
  this.transactionTotalSet();
12251
+ if (shouldDetectChanges) {
12252
+ this.detectChanges();
12253
+ }
12220
12254
  }
12221
12255
  },
12222
12256
  enumerable: false,
@@ -12227,11 +12261,15 @@
12227
12261
  return this._relation;
12228
12262
  },
12229
12263
  set: function (value) {
12264
+ var shouldDetectChanges = this._relation !== value;
12230
12265
  if (value) {
12231
12266
  this._relation = value;
12232
12267
  this.relationKind = this._relation.relationType;
12233
12268
  this.relationType = this._relation.type;
12234
12269
  this.relationSet();
12270
+ if (shouldDetectChanges) {
12271
+ this.detectChanges();
12272
+ }
12235
12273
  }
12236
12274
  },
12237
12275
  enumerable: false,
@@ -12246,6 +12284,7 @@
12246
12284
  if (this.transactionLine) {
12247
12285
  this.transactionLine.selected = this._selected;
12248
12286
  }
12287
+ this.detectChanges();
12249
12288
  },
12250
12289
  enumerable: false,
12251
12290
  configurable: true
@@ -12259,6 +12298,7 @@
12259
12298
  });
12260
12299
  TransactionBaseComponent.prototype.ngOnInit = function () {
12261
12300
  var _this = this;
12301
+ this.changeDetector.markForCheck();
12262
12302
  this._baseSubs.push(this.transactionEventService.transactionLineVisibilityChange.subscribe(function (data) {
12263
12303
  if (data && _this.transactionLine && data.line.lineNr === _this.transactionLine.lineNr) {
12264
12304
  _this.visibilitySet(data.visible);
@@ -12300,6 +12340,7 @@
12300
12340
  };
12301
12341
  TransactionBaseComponent.prototype.visibilitySet = function (visible) {
12302
12342
  this.visible = visible;
12343
+ this.detectChanges();
12303
12344
  };
12304
12345
  TransactionBaseComponent.prototype.configSet = function () {
12305
12346
  };
@@ -12448,6 +12489,7 @@
12448
12489
  }
12449
12490
  this.close.emit();
12450
12491
  this.onClose(type);
12492
+ this.detectChanges();
12451
12493
  };
12452
12494
  return DialogTransactionBaseComponent;
12453
12495
  }(TransactionBaseComponent));
@@ -13081,9 +13123,10 @@
13081
13123
  // }).getValue();
13082
13124
  };
13083
13125
  TransactionRelationService.prototype.getSupplierLightById = function (supplierId) {
13084
- // return this._selectSingleCacheService.requestCache<SupplierFullObject>(SupplierFullObject, relationNo, () => {
13085
- return this._adapterService.getSupplierLightById(supplierId);
13086
- // }).getValue();
13126
+ var _this = this;
13127
+ return this._selectSingleCacheService.requestCache(supplierLightObject_bo.SupplierLightObject, supplierId, function () {
13128
+ return _this._adapterService.getSupplierLightById(supplierId);
13129
+ }).getValue();
13087
13130
  };
13088
13131
  TransactionRelationService.prototype.insertAddress = function (address) {
13089
13132
  return this._adapterService.insertAddress(address);
@@ -14509,31 +14552,19 @@
14509
14552
  };
14510
14553
  TransactionService.prototype.prepareJsPickingListInternalParam = function () {
14511
14554
  return __awaiter(this, void 0, void 0, function () {
14512
- var _a;
14513
- return __generator(this, function (_b) {
14514
- switch (_b.label) {
14515
- case 0:
14516
- _a = this;
14517
- return [4 /*yield*/, this.getInternalParameter(internalParam_enum.InternalParam.PickingList)];
14518
- case 1:
14519
- _a.internalParameterJsPickingList = _b.sent();
14520
- return [2 /*return*/];
14521
- }
14555
+ var _this = this;
14556
+ return __generator(this, function (_a) {
14557
+ this.getInternalParameter(internalParam_enum.InternalParam.PickingList).then(function (value) { return _this.internalParameterJsPickingList = value; });
14558
+ return [2 /*return*/];
14522
14559
  });
14523
14560
  });
14524
14561
  };
14525
14562
  TransactionService.prototype.prepareManualSaveInternalParam = function () {
14526
14563
  return __awaiter(this, void 0, void 0, function () {
14527
- var _a;
14528
- return __generator(this, function (_b) {
14529
- switch (_b.label) {
14530
- case 0:
14531
- _a = this;
14532
- return [4 /*yield*/, this.getInternalParameter(internalParam_enum.InternalParam.TransManualSave)];
14533
- case 1:
14534
- _a.manualSaveParam = _b.sent();
14535
- return [2 /*return*/];
14536
- }
14564
+ var _this = this;
14565
+ return __generator(this, function (_a) {
14566
+ this.getInternalParameter(internalParam_enum.InternalParam.TransManualSave).then(function (value) { return _this.manualSaveParam = value; });
14567
+ return [2 /*return*/];
14537
14568
  });
14538
14569
  });
14539
14570
  };
@@ -21064,12 +21095,16 @@
21064
21095
  });
21065
21096
  });
21066
21097
  };
21098
+ TransactionTotalsComponent.prototype.transactionTotalSet = function () {
21099
+ this.detectChanges();
21100
+ };
21067
21101
  return TransactionTotalsComponent;
21068
21102
  }(TransactionBaseComponent));
21069
21103
  TransactionTotalsComponent.decorators = [
21070
21104
  { type: i0.Component, args: [{
21071
21105
  selector: "co-transaction-totals",
21072
21106
  template: "\n <div class=\"transaction-totals-wrapper\">\n <span class=\"totals-gross label\" [textContent]=\"'ORDER_GROSS' | localize\"></span>\n <span class=\"totals-gross value\" [textContent]=\"transactionTotal?.grossAmount | coCurrency: true\"></span>\n <ng-container *ngIf=\"transactionTotal?.totalDiscountAmount\">\n <span class=\"totals-discount-amount label\" [textContent]=\"'DISCOUNT_AMOUNT' | localize\"></span>\n <span class=\"totals-discount-amount value\" [class.transaction-negative-value]=\"transactionTotal?.totalDiscountAmount < 0\" [textContent]=\"transactionTotal?.totalDiscountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"transactionInfo?.transactionDiscountPercentage\">\n <span class=\"totals-discount-percentage label\" [textContent]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"></span>\n <span class=\"totals-discount-percentage value\" [class.transaction-negative-value]=\"transactionInfo?.transactionDiscountPercentage < 0\" [textContent]=\"transactionInfo?.transactionDiscountPercentage.toString() | append:' %'\"></span>\n </ng-container>\n <ng-container *ngIf=\"transactionTotal?.orderTotalDeliveryCostsAmount\">\n <span class=\"totals-delivery-costs label\" [textContent]=\"'DELIVERY_COSTS' | localize\"></span>\n <span class=\"totals-delivery-costs value\" [class.transaction-negative-value]=\"transactionTotal?.orderTotalDeliveryCostsAmount < 0\" [textContent]=\"transactionTotal?.orderTotalDeliveryCostsAmount | coCurrency\"></span>\n </ng-container>\n <ng-container *ngIf=\"transactionTotal?.assemblyCosts\">\n <span class=\"totals-assembly-costs label\" [textContent]=\"'ASSEMBLY_COSTS' | localize\"></span>\n <span class=\"totals-assembly-costs value\" [class.transaction-negative-value]=\"transactionTotal?.assemblyCosts < 0\" [textContent]=\"transactionTotal?.assemblyCosts | coCurrency\"></span>\n </ng-container>\n <ng-container *ngIf=\"transactionTotal?.totalSurchargeAmount\">\n <span class=\"totals-surcharge-amount label\" [textContent]=\"'SURCHARGE_AMOUNT' | localize\"></span>\n <span class=\"totals-surcharge-amount value\" [class.transaction-negative-value]=\"transactionTotal?.totalSurchargeAmount < 0\" [textContent]=\"transactionTotal?.totalSurchargeAmount | coCurrency\"></span>\n </ng-container>\n <span class=\"totals-net label\" [textContent]=\"'ORDER_NET'| localize\"></span>\n <span class=\"totals-net value\" [textContent]=\"transactionTotal?.netAmount | coCurrency: true\"></span>\n <a *ngIf=\"showDiscount\" class=\"add-discount label\" (click)=\"handleShowDiscountDialog($event)\" [textContent]=\"'ADD_DISCOUNTS' | localize\"></a>\n </div>\n <co-dialog-transaction-header-discount class=\"discount-dialog\" *ngIf=\"showDiscountDialog\"\n [transactionInfo]=\"transactionInfo\"\n [transactionTotal]=\"transactionTotal\"\n (close)=\"showDiscountDialog = false\">\n </co-dialog-transaction-header-discount>\n ",
21107
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
21073
21108
  encapsulation: i0.ViewEncapsulation.None
21074
21109
  },] }
21075
21110
  ];
@@ -21437,8 +21472,9 @@
21437
21472
  ];
21438
21473
 
21439
21474
  var TransactionButtonComponent = /** @class */ (function () {
21440
- function TransactionButtonComponent(_screenConfigService) {
21475
+ function TransactionButtonComponent(_screenConfigService, _changeDetector) {
21441
21476
  this._screenConfigService = _screenConfigService;
21477
+ this._changeDetector = _changeDetector;
21442
21478
  this.statusColor = false;
21443
21479
  this.readonly = false;
21444
21480
  this.hidden = false;
@@ -21469,11 +21505,13 @@
21469
21505
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
21470
21506
  useExisting: i0.forwardRef(function () { return TransactionButtonComponent; })
21471
21507
  }],
21472
- encapsulation: i0.ViewEncapsulation.None
21508
+ encapsulation: i0.ViewEncapsulation.None,
21509
+ changeDetection: i0.ChangeDetectionStrategy.Default
21473
21510
  },] }
21474
21511
  ];
21475
21512
  TransactionButtonComponent.ctorParameters = function () { return [
21476
- { type: TransactionScreenConfigurationService }
21513
+ { type: TransactionScreenConfigurationService },
21514
+ { type: i0.ChangeDetectorRef }
21477
21515
  ]; };
21478
21516
  TransactionButtonComponent.propDecorators = {
21479
21517
  label: [{ type: i0.Input }],
@@ -21565,6 +21603,7 @@
21565
21603
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
21566
21604
  _this.icons = Icon;
21567
21605
  _this.showPurchaseDesc = false;
21606
+ _this.customHeight = true;
21568
21607
  return _this;
21569
21608
  }
21570
21609
  Object.defineProperty(TransactionLineDescriptionComponent.prototype, "child", {
@@ -21671,7 +21710,7 @@
21671
21710
  TransactionLineDescriptionComponent.decorators = [
21672
21711
  { type: i0.Component, args: [{
21673
21712
  selector: "co-transaction-line-description",
21674
- template: "\n <div class=\"co-transaction-default-flex-row\">\n <div class=\"co-transaction-overflow-ellipsis\" [textContent]=\"getDescription()\"\n [screenConfigurationObject]=\"configNames?.description\" screenConfigNativeElement\n ></div>\n <co-icon *ngIf=\"this.transactionLine.articleFreeDescription\"\n [iconData]=\"iconCacheService.getIcon(icons.EditPencil)\"\n (click)=\"editMode = true\"\n [screenConfigurationObject]=\"configNames?.descriptionEditBtn\" screenConfigNativeElement\n ></co-icon>\n </div>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [screenConfigurationObject]=\"configNames?.description\"\n [noStyle]=\"false\"\n [placeholder]=\"showLabel ? ('GOOD_DESCRIPTION' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [model]=\"getDescription()\"\n (blur)=\"editMode = false\"\n class=\"custom-height\"\n ></co-input-text>\n ",
21713
+ template: "\n <div class=\"co-transaction-default-flex-row\">\n <div class=\"co-transaction-overflow-ellipsis\" [textContent]=\"getDescription()\"\n [screenConfigurationObject]=\"configNames?.description\" screenConfigNativeElement\n ></div>\n <co-icon *ngIf=\"this.transactionLine.articleFreeDescription\"\n [iconData]=\"iconCacheService.getIcon(icons.EditPencil)\"\n (click)=\"editMode = true\"\n [screenConfigurationObject]=\"configNames?.descriptionEditBtn\" screenConfigNativeElement\n ></co-icon>\n </div>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [screenConfigurationObject]=\"configNames?.description\"\n [noStyle]=\"false\"\n [placeholder]=\"showLabel ? ('GOOD_DESCRIPTION' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [model]=\"getDescription()\"\n (blur)=\"editMode = false\"\n [class.custom-height]=\"customHeight\"\n ></co-input-text>\n ",
21675
21714
  providers: [{
21676
21715
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
21677
21716
  useExisting: i0.forwardRef(function () { return TransactionLineDescriptionComponent; })
@@ -21683,7 +21722,8 @@
21683
21722
  TransactionLineDescriptionComponent.propDecorators = {
21684
21723
  child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }],
21685
21724
  showPurchaseDesc: [{ type: i0.Input }],
21686
- configNames: [{ type: i0.Input }]
21725
+ configNames: [{ type: i0.Input }],
21726
+ customHeight: [{ type: i0.Input }]
21687
21727
  };
21688
21728
 
21689
21729
  var TransactionLineDescriptionModule = /** @class */ (function () {
@@ -22196,7 +22236,9 @@
22196
22236
  set: function (value) {
22197
22237
  if (this._transactionType !== value) {
22198
22238
  this._resetRequest();
22239
+ this.searchRequest.transactionKind = value;
22199
22240
  this.transactions.length = 0;
22241
+ this.searchRequestSet.next(this.searchRequest);
22200
22242
  }
22201
22243
  this._transactionType = value;
22202
22244
  },
@@ -22500,13 +22542,36 @@
22500
22542
  };
22501
22543
 
22502
22544
  var TransactionSearchTileBaseComponent = /** @class */ (function () {
22503
- function TransactionSearchTileBaseComponent(iconCacheService) {
22545
+ function TransactionSearchTileBaseComponent(iconCacheService, changeDetection) {
22504
22546
  this.iconCacheService = iconCacheService;
22547
+ this.changeDetection = changeDetection;
22505
22548
  this.cfgNames = exports.TransactionCfgName;
22506
22549
  this.icons = Icon;
22507
22550
  this.transactionClick = new i0.EventEmitter();
22508
22551
  this.selectedClick = new i0.EventEmitter();
22509
22552
  }
22553
+ Object.defineProperty(TransactionSearchTileBaseComponent.prototype, "showCheckbox", {
22554
+ get: function () {
22555
+ return this._showCheckbox;
22556
+ },
22557
+ set: function (value) {
22558
+ this._showCheckbox = value;
22559
+ this.detectChanges();
22560
+ },
22561
+ enumerable: false,
22562
+ configurable: true
22563
+ });
22564
+ Object.defineProperty(TransactionSearchTileBaseComponent.prototype, "transaction", {
22565
+ get: function () {
22566
+ return this._transaction;
22567
+ },
22568
+ set: function (value) {
22569
+ this._transaction = value;
22570
+ this.detectChanges();
22571
+ },
22572
+ enumerable: false,
22573
+ configurable: true
22574
+ });
22510
22575
  TransactionSearchTileBaseComponent.prototype.showClass = function () {
22511
22576
  return true;
22512
22577
  };
@@ -22516,13 +22581,17 @@
22516
22581
  TransactionSearchTileBaseComponent.prototype.onSelectedClick = function (transaction) {
22517
22582
  this.selectedClick.emit(transaction);
22518
22583
  };
22584
+ TransactionSearchTileBaseComponent.prototype.detectChanges = function () {
22585
+ this.changeDetection.detectChanges();
22586
+ };
22519
22587
  return TransactionSearchTileBaseComponent;
22520
22588
  }());
22521
22589
  TransactionSearchTileBaseComponent.decorators = [
22522
22590
  { type: i0.Directive }
22523
22591
  ];
22524
22592
  TransactionSearchTileBaseComponent.ctorParameters = function () { return [
22525
- { type: IconCacheService }
22593
+ { type: IconCacheService },
22594
+ { type: i0.ChangeDetectorRef }
22526
22595
  ]; };
22527
22596
  TransactionSearchTileBaseComponent.propDecorators = {
22528
22597
  showCheckbox: [{ type: i0.Input }],
@@ -22557,9 +22626,10 @@
22557
22626
 
22558
22627
  var TransactionSearchSalesOrderTileComponent = /** @class */ (function (_super) {
22559
22628
  __extends(TransactionSearchSalesOrderTileComponent, _super);
22560
- function TransactionSearchSalesOrderTileComponent(iconCacheService) {
22561
- var _this = _super.call(this, iconCacheService) || this;
22629
+ function TransactionSearchSalesOrderTileComponent(iconCacheService, changeDetector) {
22630
+ var _this = _super.call(this, iconCacheService, changeDetector) || this;
22562
22631
  _this.iconCacheService = iconCacheService;
22632
+ _this.changeDetector = changeDetector;
22563
22633
  _this.statusBarConfigNames = {
22564
22634
  statusBarBT: _this.cfgNames.StatusBarBT,
22565
22635
  statusBarTG: _this.cfgNames.StatusBarTG,
@@ -22571,20 +22641,33 @@
22571
22641
  statusBarGL: _this.cfgNames.StatusBarGL,
22572
22642
  statusBarGF: _this.cfgNames.StatusBarGF
22573
22643
  };
22574
- _this.showAvatar = true;
22644
+ _this._showAvatar = true;
22575
22645
  return _this;
22576
22646
  }
22647
+ Object.defineProperty(TransactionSearchSalesOrderTileComponent.prototype, "showAvatar", {
22648
+ get: function () {
22649
+ return this._showAvatar;
22650
+ },
22651
+ set: function (value) {
22652
+ this._showAvatar = value;
22653
+ this.detectChanges();
22654
+ },
22655
+ enumerable: false,
22656
+ configurable: true
22657
+ });
22577
22658
  return TransactionSearchSalesOrderTileComponent;
22578
22659
  }(TransactionSearchTileBaseComponent));
22579
22660
  TransactionSearchSalesOrderTileComponent.decorators = [
22580
22661
  { type: i0.Component, args: [{
22581
22662
  selector: "co-transaction-search-sales-order-tile",
22582
- template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\" *ngIf=\"showAvatar\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n </div>\n <div class=\"tile-upper-middle\">\n <div class=\"header\">\n <span [textContent]=\"transaction.transNr\"></span>\n <div class=\"type-indicator\"><span [textContent]=\"transaction.transactionKind\"></span></div>\n </div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"status-bar-wrapper\" (click)=\"$event.stopPropagation()\">\n <co-transaction-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transaction]=\"transaction\"></co-transaction-statusbar>\n </div>\n <div class=\"header total-price-vat\"><span\n [textContent]=\"transaction.totalPriceWithVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\">\n <co-input-checkbox\n *ngIf=\"showCheckbox\"\n [(model)]=\"transaction.selected\"\n (modelChange)=\"onSelectedClick(transaction)\"\n ></co-input-checkbox>\n </div>\n <div class=\"tile-middle-middle\">\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"tile-bottom-middle order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"iconCacheService.getIcon(icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"tile-bottom-right order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n </div>\n ",
22663
+ template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\" *ngIf=\"showAvatar\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n </div>\n <div class=\"tile-upper-middle\">\n <div class=\"header\">\n <span [textContent]=\"transaction.transNr\"></span>\n <div class=\"type-indicator\"><span [textContent]=\"transaction.transactionKind\"></span></div>\n </div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"status-bar-wrapper\" (click)=\"$event.stopPropagation()\">\n <co-transaction-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transaction]=\"transaction\"></co-transaction-statusbar>\n </div>\n <div class=\"header total-price-vat\"><span\n [textContent]=\"transaction.totalPriceWithVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\">\n <co-input-checkbox\n *ngIf=\"showCheckbox\"\n [(model)]=\"transaction.selected\"\n (modelChange)=\"onSelectedClick(transaction)\"\n ></co-input-checkbox>\n </div>\n <div class=\"tile-middle-middle\">\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"tile-bottom-middle order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"iconCacheService.getIcon(icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"tile-bottom-right order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n </div>\n ",
22664
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
22583
22665
  encapsulation: i0.ViewEncapsulation.None
22584
22666
  },] }
22585
22667
  ];
22586
22668
  TransactionSearchSalesOrderTileComponent.ctorParameters = function () { return [
22587
- { type: IconCacheService }
22669
+ { type: IconCacheService },
22670
+ { type: i0.ChangeDetectorRef }
22588
22671
  ]; };
22589
22672
  TransactionSearchSalesOrderTileComponent.propDecorators = {
22590
22673
  showAvatar: [{ type: i0.Input }]
@@ -22720,7 +22803,9 @@
22720
22803
  result = _a.sent();
22721
22804
  if (result) {
22722
22805
  this.analyzedConfirmation = result.find(function (a) { return a.analysisId === _this.confirmationAnalysisId; });
22723
- this.setOrdersTotal(this.analyzedConfirmation.ordersTotal);
22806
+ if (this.analyzedConfirmation) {
22807
+ this.setOrdersTotal(this.analyzedConfirmation.ordersTotal);
22808
+ }
22724
22809
  }
22725
22810
  _a.label = 2;
22726
22811
  case 2: return [2 /*return*/];
@@ -23068,8 +23153,12 @@
23068
23153
  if (_this.printLayouts && _this.printLayouts.length > 0) {
23069
23154
  var defaultLayout = _this.printLayouts.find(function (p) { return p.isDefault; });
23070
23155
  if (defaultLayout) {
23071
- _this.reportDocumentPrintRequest.reportId = defaultLayout.reportId;
23072
- _this.reportDocumentPdfRequest.reportId = defaultLayout.reportId;
23156
+ if (_this.reportDocumentPrintRequest) {
23157
+ _this.reportDocumentPrintRequest.reportId = defaultLayout.reportId;
23158
+ }
23159
+ if (_this.reportDocumentPdfRequest) {
23160
+ _this.reportDocumentPdfRequest.reportId = defaultLayout.reportId;
23161
+ }
23073
23162
  }
23074
23163
  }
23075
23164
  });
@@ -23629,12 +23718,13 @@
23629
23718
  };
23630
23719
 
23631
23720
  var TransactionLineActionButtonsComponent = /** @class */ (function () {
23632
- function TransactionLineActionButtonsComponent(elementRef, iconCacheService, _transactionService, _transactionEventService, _overlayService) {
23721
+ function TransactionLineActionButtonsComponent(elementRef, iconCacheService, _transactionService, _transactionEventService, _overlayService, _changeDetector) {
23633
23722
  this.elementRef = elementRef;
23634
23723
  this.iconCacheService = iconCacheService;
23635
23724
  this._transactionService = _transactionService;
23636
23725
  this._transactionEventService = _transactionEventService;
23637
23726
  this._overlayService = _overlayService;
23727
+ this._changeDetector = _changeDetector;
23638
23728
  this.icons = Icon;
23639
23729
  this.isFirst = false;
23640
23730
  this.waitingForUserAction = new i0.EventEmitter();
@@ -23746,7 +23836,8 @@
23746
23836
  providers: [
23747
23837
  corecomponents_v12.OverlayService
23748
23838
  ],
23749
- encapsulation: i0.ViewEncapsulation.None
23839
+ encapsulation: i0.ViewEncapsulation.None,
23840
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
23750
23841
  },] }
23751
23842
  ];
23752
23843
  TransactionLineActionButtonsComponent.ctorParameters = function () { return [
@@ -23754,7 +23845,8 @@
23754
23845
  { type: IconCacheService },
23755
23846
  { type: TransactionService },
23756
23847
  { type: TransactionEventService },
23757
- { type: corecomponents_v12.OverlayService }
23848
+ { type: corecomponents_v12.OverlayService },
23849
+ { type: i0.ChangeDetectorRef }
23758
23850
  ]; };
23759
23851
  TransactionLineActionButtonsComponent.propDecorators = {
23760
23852
  configNames: [{ type: i0.Input }],
@@ -23845,7 +23937,8 @@
23845
23937
  { type: i0.Component, args: [{
23846
23938
  selector: "co-transaction-overview-line",
23847
23939
  template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)\"\n [checkboxValue]=\"orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'COMMISSION_CODE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE_AND_STATUS' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderOverview\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\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-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [readonly]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
23848
- encapsulation: i0.ViewEncapsulation.None
23940
+ encapsulation: i0.ViewEncapsulation.None,
23941
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
23849
23942
  },] }
23850
23943
  ];
23851
23944
  TransactionOverviewLineComponent.ctorParameters = function () { return [
@@ -24207,6 +24300,9 @@
24207
24300
  this._subscriptions.forEach(function (s) { return s.unsubscribe(); });
24208
24301
  };
24209
24302
  TransactionReceiveGoodsLineBaseComponent.prototype.changeLineAmount = function (amount) {
24303
+ if (this.transactionLine.articleLineStatus) {
24304
+ this.transactionLine.articleLineStatus.quantityToReceive = amount;
24305
+ }
24210
24306
  this.transactionLine.stickerAmount = amount * (this.transactionLine.productItemsAmount ? this.transactionLine.productItemsAmount : 1);
24211
24307
  };
24212
24308
  TransactionReceiveGoodsLineBaseComponent.prototype.handleLineClicked = function (mouseClick) {
@@ -24253,7 +24349,7 @@
24253
24349
  TransactionReceiveGoodsLineComponent.decorators = [
24254
24350
  { type: i0.Component, args: [{
24255
24351
  selector: "co-transaction-receive-goods-line",
24256
- 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 ",
24352
+ 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 ",
24257
24353
  encapsulation: i0.ViewEncapsulation.None,
24258
24354
  changeDetection: i0.ChangeDetectionStrategy.OnPush
24259
24355
  },] }
@@ -25066,6 +25162,7 @@
25066
25162
  }
25067
25163
  TransactionPurchaseOrderLineBaseComponent.prototype.ngOnInit = function () {
25068
25164
  var _this = this;
25165
+ _super.prototype.ngOnInit.call(this);
25069
25166
  this.subs.push(this.transactionEventService.orderConfirmationDropped.subscribe(function (data) {
25070
25167
  if (data) {
25071
25168
  if (data.lineNr !== undefined && _this.transactionLine && _this.transactionLine.lineNr === data.lineNr) {
@@ -25083,7 +25180,6 @@
25083
25180
  }), this.transactionEventService.overwritePurchaseOrderConfirmationCompletedChanged.subscribe(function () {
25084
25181
  _this._handleConfirmationOverwrite();
25085
25182
  }));
25086
- this._getPurchasePortalLine();
25087
25183
  };
25088
25184
  TransactionPurchaseOrderLineBaseComponent.prototype.ngOnDestroy = function () {
25089
25185
  this.subs.forEach(function (s) { return s.unsubscribe(); });
@@ -25120,15 +25216,23 @@
25120
25216
  };
25121
25217
  TransactionPurchaseOrderLineBaseComponent.prototype.transactionLineSet = function () {
25122
25218
  _super.prototype.transactionLineSet.call(this);
25219
+ this._getPurchasePortalLine();
25123
25220
  this.showCheckboxForLine = this.transactionLine.articleLineStatus &&
25124
25221
  this.transactionLine.articleLineStatus.quantityPurchaseConfirmed !== this.transactionLine.amount;
25125
25222
  };
25223
+ TransactionPurchaseOrderLineBaseComponent.prototype.visibilitySet = function (visible) {
25224
+ _super.prototype.visibilitySet.call(this, visible);
25225
+ this._getPurchasePortalLine();
25226
+ };
25126
25227
  TransactionPurchaseOrderLineBaseComponent.prototype._getPurchasePortalLine = function () {
25127
25228
  return __awaiter(this, void 0, void 0, function () {
25128
- var getPurchasePortalLine$1, purchasePortalFilter, purchasePortalLinesResponse;
25129
- return __generator(this, function (_a) {
25130
- switch (_a.label) {
25229
+ var getPurchasePortalLine$1, purchasePortalFilter, _a;
25230
+ return __generator(this, function (_b) {
25231
+ switch (_b.label) {
25131
25232
  case 0:
25233
+ if (this._purchasePortalLinesResponse || !this.transactionInfo || !this.transactionLine || !this.visible) {
25234
+ return [2 /*return*/];
25235
+ }
25132
25236
  getPurchasePortalLine$1 = new getPurchasePortalLine.GetPurchasePortalLine();
25133
25237
  purchasePortalFilter = new purchasePortalFilters_bo.PurchasePortalFilters();
25134
25238
  purchasePortalFilter.purchaseOrderNo = this.transactionInfo.transactionNr.toString();
@@ -25136,11 +25240,12 @@
25136
25240
  getPurchasePortalLine$1.transIdPurchase = this.transactionInfo.id;
25137
25241
  getPurchasePortalLine$1.docKind = "IB";
25138
25242
  getPurchasePortalLine$1.filterObject = purchasePortalFilter;
25243
+ _a = this;
25139
25244
  return [4 /*yield*/, this.transactionService.getPurchasePortalLines(getPurchasePortalLine$1)];
25140
25245
  case 1:
25141
- purchasePortalLinesResponse = _a.sent();
25142
- if (purchasePortalLinesResponse.length > 0) {
25143
- this.transactionLine.purchasePortalLine = purchasePortalLinesResponse[0];
25246
+ _a._purchasePortalLinesResponse = _b.sent();
25247
+ if (this._purchasePortalLinesResponse.length > 0) {
25248
+ this.transactionLine.purchasePortalLine = this._purchasePortalLinesResponse[0];
25144
25249
  this.transactionLine.quantityPurchaseToConfirm = +this.transactionLine.purchasePortalLine.amountOrdered - +this.transactionLine.purchasePortalLine.amountConfirmedTarget;
25145
25250
  this.transactionEventService.transactionLineChanged.next(this.transactionLine);
25146
25251
  this.detectChanges();
@@ -25329,6 +25434,7 @@
25329
25434
  { type: i0.Component, args: [{
25330
25435
  selector: "co-transaction-sales-allocation-button-bar-button",
25331
25436
  template: "\n <co-icon class=\"co-transaction-button-bar-icon\" [iconData]=\"iconCacheService.getIcon(iconName)\"></co-icon>\n <span class=\"button-title\" [textContent]=\"title | localize\"></span>\n ",
25437
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
25332
25438
  encapsulation: i0.ViewEncapsulation.None
25333
25439
  },] }
25334
25440
  ];
@@ -26982,9 +27088,10 @@
26982
27088
 
26983
27089
  var TransactionSearchSalesQuotationTileComponent = /** @class */ (function (_super) {
26984
27090
  __extends(TransactionSearchSalesQuotationTileComponent, _super);
26985
- function TransactionSearchSalesQuotationTileComponent(iconCacheService) {
26986
- var _this = _super.call(this, iconCacheService) || this;
27091
+ function TransactionSearchSalesQuotationTileComponent(iconCacheService, changeDetector) {
27092
+ var _this = _super.call(this, iconCacheService, changeDetector) || this;
26987
27093
  _this.iconCacheService = iconCacheService;
27094
+ _this.changeDetector = changeDetector;
26988
27095
  return _this;
26989
27096
  }
26990
27097
  TransactionSearchSalesQuotationTileComponent.prototype.showClass = function () {
@@ -27000,7 +27107,8 @@
27000
27107
  },] }
27001
27108
  ];
27002
27109
  TransactionSearchSalesQuotationTileComponent.ctorParameters = function () { return [
27003
- { type: IconCacheService }
27110
+ { type: IconCacheService },
27111
+ { type: i0.ChangeDetectorRef }
27004
27112
  ]; };
27005
27113
  TransactionSearchSalesQuotationTileComponent.propDecorators = {
27006
27114
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-sales-quotation-tile",] }]
@@ -27178,9 +27286,10 @@
27178
27286
 
27179
27287
  var TransactionSearchPosOrderTileComponent = /** @class */ (function (_super) {
27180
27288
  __extends(TransactionSearchPosOrderTileComponent, _super);
27181
- function TransactionSearchPosOrderTileComponent(iconCacheService) {
27182
- var _this = _super.call(this, iconCacheService) || this;
27289
+ function TransactionSearchPosOrderTileComponent(iconCacheService, changeDetector) {
27290
+ var _this = _super.call(this, iconCacheService, changeDetector) || this;
27183
27291
  _this.iconCacheService = iconCacheService;
27292
+ _this.changeDetector = changeDetector;
27184
27293
  _this.statusBarConfigNames = {
27185
27294
  statusBarBT: _this.cfgNames.StatusBarBT,
27186
27295
  statusBarTG: _this.cfgNames.StatusBarTG,
@@ -27199,12 +27308,13 @@
27199
27308
  TransactionSearchPosOrderTileComponent.decorators = [
27200
27309
  { type: i0.Component, args: [{
27201
27310
  selector: 'co-transaction-search-pos-order-tile',
27202
- template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n </div>\n <div class=\"tile-upper-middle\">\n <div class=\"header\">\n <span [textContent]=\"transaction.transNr\"></span>\n <div class=\"type-indicator\"><span [textContent]=\"transaction.transactionKind\"></span></div>\n </div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"status-bar-wrapper\" (click)=\"$event.stopPropagation()\">\n <co-transaction-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transaction]=\"transaction\"></co-transaction-statusbar>\n </div>\n <div class=\"header total-price-vat\"><span [textContent]=\"transaction.totalPriceWithVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\">\n <co-input-checkbox *ngIf=\"showCheckbox\"\n [(model)]=\"transaction.selected\"\n ></co-input-checkbox>\n </div>\n <div class=\"tile-middle-middle\">\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"tile-bottom-middle order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"iconCacheService.getIcon(icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"tile-bottom-right order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n </div>\n ",
27311
+ template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n </div>\n <div class=\"tile-upper-middle\">\n <div class=\"header\">\n <span [textContent]=\"transaction.transNr\"></span>\n <div class=\"type-indicator\"><span [textContent]=\"transaction.transactionKind\"></span></div>\n </div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"status-bar-wrapper\" (click)=\"$event.stopPropagation()\">\n <co-transaction-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transaction]=\"transaction\"></co-transaction-statusbar>\n </div>\n <div class=\"header total-price-vat\"><span [textContent]=\"transaction.totalPriceWithVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\">\n <co-input-checkbox *ngIf=\"showCheckbox\"\n [(model)]=\"transaction.selected\"\n ></co-input-checkbox>\n </div>\n <div class=\"tile-middle-middle\">\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"tile-bottom-middle order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"iconCacheService.getIcon(icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"tile-bottom-right order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n </div>\n ",
27203
27312
  encapsulation: i0.ViewEncapsulation.None
27204
27313
  },] }
27205
27314
  ];
27206
27315
  TransactionSearchPosOrderTileComponent.ctorParameters = function () { return [
27207
- { type: IconCacheService }
27316
+ { type: IconCacheService },
27317
+ { type: i0.ChangeDetectorRef }
27208
27318
  ]; };
27209
27319
  TransactionSearchPosOrderTileComponent.propDecorators = {
27210
27320
  showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-search-pos-order-tile',] }]
@@ -27988,6 +28098,7 @@
27988
28098
  _super.prototype.ngOnInit.call(this);
27989
28099
  this._subscriptions.push(this.transactionEventService.selectAllSalesOrderLinesToBePicked.subscribe(function (value) {
27990
28100
  _this.transactionLine.selected = value && !_this.transactionLineToBePickedCompleted;
28101
+ _this.detectChanges();
27991
28102
  }));
27992
28103
  };
27993
28104
  TransactionPlanningLineComponent.prototype.ngOnDestroy = function () {
@@ -28002,6 +28113,7 @@
28002
28113
  this.hasOpenedSidePanel = true;
28003
28114
  }
28004
28115
  this.transactionLine.selected = value;
28116
+ this.detectChanges();
28005
28117
  };
28006
28118
  TransactionPlanningLineComponent.prototype.handleLineClicked = function (mouseClick) {
28007
28119
  var _a, _b;
@@ -28015,7 +28127,7 @@
28015
28127
  };
28016
28128
  TransactionPlanningLineComponent.prototype.dragStarted = function (ev) {
28017
28129
  this._deliveryPlanningService.currentTransId = this.transaction.transactionInfo.id;
28018
- ev.dataTransfer.setData("text", "lines");
28130
+ ev.dataTransfer.setData('text', 'lines');
28019
28131
  };
28020
28132
  Object.defineProperty(TransactionPlanningLineComponent.prototype, "linePlanned", {
28021
28133
  get: function () {
@@ -28029,17 +28141,14 @@
28029
28141
  enumerable: false,
28030
28142
  configurable: true
28031
28143
  });
28032
- TransactionPlanningLineComponent.prototype.allowPartialDelivery = function () {
28033
- var _a;
28034
- return (_a = this.transactionInfo) === null || _a === void 0 ? void 0 : _a.allowPartialDelivery;
28035
- };
28036
28144
  return TransactionPlanningLineComponent;
28037
28145
  }(TransactionBaseComponent));
28038
28146
  TransactionPlanningLineComponent.decorators = [
28039
28147
  { type: i0.Component, args: [{
28040
- selector: "co-planning-overview-line",
28041
- template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [draggable]=\"!linePlanned\"\n (dragstart)=\"dragStarted($event)\"\n [checkbox]=\"!linePlanned && allowPartialDelivery()\"\n [checkboxValue]=\"transactionLine.selected\"\n [checkboxReadonly]=\"false\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve\n (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'COMMISSION_CODE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE_AND_STATUS' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderPlanning\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <span class=\"transaction-field-label\" [textContent]=\"'TOTALS_AND_DISCOUNT' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
28042
- encapsulation: i0.ViewEncapsulation.None
28148
+ selector: 'co-transaction-planning-line',
28149
+ template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [draggable]=\"!linePlanned\"\n (dragstart)=\"dragStarted($event)\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected || !transactionInfo?.allowPartialDelivery\"\n [checkboxReadonly]=\"!transactionInfo?.allowPartialDelivery\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve\n (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'COMMISSION_CODE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE_AND_STATUS' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderPlanning\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <span class=\"transaction-field-label\" [textContent]=\"'TOTALS_AND_DISCOUNT' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
28150
+ encapsulation: i0.ViewEncapsulation.None,
28151
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
28043
28152
  },] }
28044
28153
  ];
28045
28154
  TransactionPlanningLineComponent.ctorParameters = function () { return [
@@ -28056,9 +28165,9 @@
28056
28165
  TransactionPlanningLineComponent.propDecorators = {
28057
28166
  transactionLineActionButtons: [{ type: i0.ViewChild, args: [TransactionLineActionButtonsComponent,] }],
28058
28167
  descriptionDblClick: [{ type: i0.Output }],
28059
- showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-overview-line",] }],
28060
- handleMouseOver: [{ type: i0.HostListener, args: ["mouseover", ["$event"],] }],
28061
- handleMouseLeave: [{ type: i0.HostListener, args: ["mouseleave", ["$event"],] }]
28168
+ showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-planning-line',] }],
28169
+ handleMouseOver: [{ type: i0.HostListener, args: ['mouseover', ['$event'],] }],
28170
+ handleMouseLeave: [{ type: i0.HostListener, args: ['mouseleave', ['$event'],] }]
28062
28171
  };
28063
28172
 
28064
28173
  var TransactionQuickAccessPlanningComponent = /** @class */ (function (_super) {
@@ -29000,14 +29109,15 @@
29000
29109
  if (!componentClass) {
29001
29110
  return;
29002
29111
  }
29003
- this._componentRef = this._compFactoryResolver
29004
- .resolveComponentFactory(componentClass)
29005
- .create(this.injector);
29006
- this.appRef.attachView(this._componentRef.hostView);
29112
+ var factory = this._compFactoryResolver.resolveComponentFactory(componentClass);
29113
+ this._transactionLineContainer.clear();
29114
+ this._componentRef = this._transactionLineContainer.createComponent(factory);
29007
29115
  this._prepareProps();
29008
- var domElem = this._componentRef.hostView
29009
- .rootNodes[0];
29010
- this._transactionLineContainer.nativeElement.appendChild(domElem);
29116
+ this.changeDetector.markForCheck();
29117
+ // const domElem = (this._componentRef.hostView as EmbeddedViewRef<any>)
29118
+ // .rootNodes[0] as HTMLElement;
29119
+ //
29120
+ // this._transactionLineContainer.nativeElement.appendChild(domElem);
29011
29121
  this._componentRef.onDestroy(function () {
29012
29122
  _this.appRef.detachView(_this._componentRef.hostView);
29013
29123
  });
@@ -29050,7 +29160,7 @@
29050
29160
  { type: i0.Injector }
29051
29161
  ]; };
29052
29162
  TransactionLineComponent.propDecorators = {
29053
- container: [{ type: i0.ViewChild, args: ['transactionLine', { read: i0.ElementRef },] }],
29163
+ container: [{ type: i0.ViewChild, args: ['transactionLine', { read: i0.ViewContainerRef },] }],
29054
29164
  activeCategory: [{ type: i0.Input }],
29055
29165
  preview: [{ type: i0.Input }],
29056
29166
  isFirst: [{ type: i0.Input }],
@@ -32119,10 +32229,9 @@
32119
32229
  };
32120
32230
  TransactionLineSupplierButtonComponent.prototype._getSupplierDescription = function () {
32121
32231
  var _this = this;
32122
- if (this.transactionLine && this.transactionLine.isArticle && this.transactionLine.supplierDescription === undefined) {
32123
- this._relationService.getRelationById(this.transactionLine.supplierId).then(function (relations) {
32124
- var relation = relations && relations.length > 0 ? relations[0] : null;
32125
- _this.transactionLine.supplierDescription = relation ? relation.displayName : "";
32232
+ if (this.transactionLine && this.transactionLine.isArticle && this.transactionLine.supplierDescription === undefined && this.visible) {
32233
+ this._relationService.getSupplierLightById(this.transactionLine.supplierId).then(function (supplier) {
32234
+ _this.transactionLine.supplierDescription = supplier ? supplier.supplierName : "";
32126
32235
  _this.detectChanges();
32127
32236
  });
32128
32237
  this.readonly = !this.transactionLine.articleFreeSupplier;
@@ -32485,21 +32594,10 @@
32485
32594
  TransactionLineDropShipmentButtonComponent.prototype._getSupplierAllowsDropShipmentParameter = function () {
32486
32595
  var _this = this;
32487
32596
  if (this.transactionLine && this.visible) {
32488
- this._relationService.getSupplierLightById(this.transactionLine.supplierId).then(function (result) {
32489
- _this.supplierAllowsDropShipment = result.dropshipment;
32597
+ this._relationService.getSupplierLightById(this.transactionLine.supplierId).then(function (supplier) {
32598
+ _this.supplierAllowsDropShipment = supplier.dropshipment;
32490
32599
  _this.detectChanges();
32491
32600
  });
32492
- // this._relationService.getRelationById(this.transactionLine.supplierId).then((relations: RelationListObject[]) => {
32493
- // const relation: RelationListObject = relations && relations.length > 0 ? relations[0] : null;
32494
- // if (relation) {
32495
- // this._relationService.getSupplierFullObject(+relation.relationNr).then((result) => {
32496
- // if (result) {
32497
- // this.supplierAllowsDropShipment = result.dropshipment;
32498
- // this.detectChanges();
32499
- // }
32500
- // });
32501
- // }
32502
- // });
32503
32601
  }
32504
32602
  };
32505
32603
  return TransactionLineDropShipmentButtonComponent;
@@ -32648,6 +32746,7 @@
32648
32746
  _this.showConfirmedDeliveryDate = false;
32649
32747
  _this.isConfirmedDateLater = false;
32650
32748
  _this._subs = [];
32749
+ _this._handled = false;
32651
32750
  return _this;
32652
32751
  }
32653
32752
  TransactionLineConfirmedDeliveryDateButtonComponent.prototype.showClass = function () {
@@ -32674,7 +32773,8 @@
32674
32773
  };
32675
32774
  TransactionLineConfirmedDeliveryDateButtonComponent.prototype._checkConfirmedDeliveryDate = function (line) {
32676
32775
  var _this = this;
32677
- if (line && line.refTransactions && line.refTransactions.length === 1 && !this.confirmedDeliveryDate) {
32776
+ if (line && line.lineNr === this.transactionLine.lineNr && line.refTransactions && line.refTransactions.length === 1 &&
32777
+ !this.confirmedDeliveryDate && this.visible && !this._handled) {
32678
32778
  if (line.refTransactions[0].refTransactionType === transactionKind_enum.TransactionKind.PurchaseOrder) {
32679
32779
  this.service.getMaxConfirmedDeliveryDateForPurchaseOrder(line.refTransactions[0].refTransactionId).then(function (date) {
32680
32780
  if (date) {
@@ -32682,6 +32782,7 @@
32682
32782
  _this.showConfirmedDeliveryDate = true;
32683
32783
  _this._checkDates();
32684
32784
  }
32785
+ _this._handled = true;
32685
32786
  });
32686
32787
  }
32687
32788
  }
@@ -38881,6 +38982,7 @@
38881
38982
  case 1:
38882
38983
  if (_a.sent()) {
38883
38984
  this.showDialog = true;
38985
+ this.detectChanges();
38884
38986
  }
38885
38987
  return [2 /*return*/];
38886
38988
  }
@@ -38911,7 +39013,8 @@
38911
39013
  useExisting: i0.forwardRef(function () { return TransactionHeaderDeliveryMethodButtonComponent; })
38912
39014
  }
38913
39015
  ],
38914
- encapsulation: i0.ViewEncapsulation.None
39016
+ encapsulation: i0.ViewEncapsulation.None,
39017
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
38915
39018
  },] }
38916
39019
  ];
38917
39020
  TransactionHeaderDeliveryMethodButtonComponent.ctorParameters = function () { return [
@@ -39046,10 +39149,13 @@
39046
39149
  event.stopPropagation();
39047
39150
  return [4 /*yield*/, this.lockTransaction()];
39048
39151
  case 1:
39049
- if (_a.sent()) {
39050
- this.transactionService.updateHeaderTransactionDeliveryDateDefinitive(this.transactionInfo.uuid, definitive, this.lockAndSave);
39051
- }
39052
- return [2 /*return*/];
39152
+ if (!_a.sent()) return [3 /*break*/, 3];
39153
+ return [4 /*yield*/, this.transactionService.updateHeaderTransactionDeliveryDateDefinitive(this.transactionInfo.uuid, definitive, this.lockAndSave)];
39154
+ case 2:
39155
+ _a.sent();
39156
+ this.detectChanges();
39157
+ _a.label = 3;
39158
+ case 3: return [2 /*return*/];
39053
39159
  }
39054
39160
  });
39055
39161
  });
@@ -39057,6 +39163,7 @@
39057
39163
  TransactionHeaderDeliverydateDefinitiveButtonComponent.prototype.configSet = function () {
39058
39164
  if (this.screenConfigService.configObjects && this.cfgName) {
39059
39165
  this.hidden = this.screenConfigService.getObjectConfigurationFor(this.cfgName).immediatelyHidden();
39166
+ this.detectChanges();
39060
39167
  }
39061
39168
  };
39062
39169
  return TransactionHeaderDeliverydateDefinitiveButtonComponent;
@@ -41055,14 +41162,6 @@
41055
41162
  enumerable: false,
41056
41163
  configurable: true
41057
41164
  });
41058
- SearchViewModeService.prototype.calculateClasses = function () {
41059
- return {
41060
- 'fullscreen': this.fullscreen,
41061
- 'sidebar': !this.fullscreen,
41062
- 'collapsed': this.collapsed,
41063
- 'expanded': !this.collapsed,
41064
- };
41065
- };
41066
41165
  SearchViewModeService.prototype.toggleFilter = function () {
41067
41166
  this.showFilterSidebar = !this.showFilterSidebar;
41068
41167
  };
@@ -41118,6 +41217,8 @@
41118
41217
  function SearchFilterPanelComponent(iconCacheService, searchViewModeService) {
41119
41218
  this.iconCacheService = iconCacheService;
41120
41219
  this.searchViewModeService = searchViewModeService;
41220
+ this.viewMode = exports.SearchViewMode;
41221
+ this.barViewMode = exports.SearchbarViewMode;
41121
41222
  this.align = corecomponents_v12.ColumnAlign;
41122
41223
  this.icon = Icon;
41123
41224
  this.resetFilterClick = new i0.EventEmitter();
@@ -41136,7 +41237,7 @@
41136
41237
  SearchFilterPanelComponent.decorators = [
41137
41238
  { type: i0.Component, args: [{
41138
41239
  selector: "co-search-filter-panel",
41139
- template: "\n <div class=\"search-filter-panel-wrapper\">\n\n <!--buttons-header-->\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icon.SyncAlt)\"\n (click)=\"onResetButtonClick()\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icon.Cancel)\"\n (click)=\"onCloseButtonClick()\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\"\n [ngClass]=\"searchViewModeService.calculateClasses()\"\n *ngIf=\" searchViewModeService.showFilterSidebar\">\n <ng-content></ng-content>\n </div>\n\n </div>\n ",
41240
+ template: "\n <div class=\"search-filter-panel-wrapper\">\n\n <!--buttons-header-->\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icon.SyncAlt)\"\n (click)=\"onResetButtonClick()\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icon.Cancel)\"\n (click)=\"onCloseButtonClick()\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\" *ngIf=\" searchViewModeService.showFilterSidebar\"\n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n <ng-content></ng-content>\n </div>\n\n </div>\n ",
41140
41241
  encapsulation: i0.ViewEncapsulation.None
41141
41242
  },] }
41142
41243
  ];
@@ -41172,11 +41273,12 @@
41172
41273
  ];
41173
41274
 
41174
41275
  var TransactionFilterComponent = /** @class */ (function () {
41175
- function TransactionFilterComponent(_mappingService, _compFactoryResolver, appRef, injector, searchService) {
41276
+ function TransactionFilterComponent(_mappingService, _compFactoryResolver, appRef, injector, _changeDetector, searchService) {
41176
41277
  this._mappingService = _mappingService;
41177
41278
  this._compFactoryResolver = _compFactoryResolver;
41178
41279
  this.appRef = appRef;
41179
41280
  this.injector = injector;
41281
+ this._changeDetector = _changeDetector;
41180
41282
  this.searchService = searchService;
41181
41283
  }
41182
41284
  Object.defineProperty(TransactionFilterComponent.prototype, "container", {
@@ -41222,6 +41324,7 @@
41222
41324
  var domElem = this._componentRef.hostView
41223
41325
  .rootNodes[0];
41224
41326
  this._transactionFilterContainer.nativeElement.appendChild(domElem);
41327
+ this._changeDetector.detectChanges();
41225
41328
  this._componentRef.onDestroy(function () {
41226
41329
  _this.appRef.detachView(_this._componentRef.hostView);
41227
41330
  });
@@ -41232,6 +41335,7 @@
41232
41335
  { type: i0.Component, args: [{
41233
41336
  selector: "co-transaction-filter",
41234
41337
  template: "\n <div #transactionFilter class=\"transaction-filter-wrapper\">\n </div>\n ",
41338
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
41235
41339
  encapsulation: i0.ViewEncapsulation.None
41236
41340
  },] }
41237
41341
  ];
@@ -41240,6 +41344,7 @@
41240
41344
  { type: i0.ComponentFactoryResolver },
41241
41345
  { type: i0.ApplicationRef },
41242
41346
  { type: i0.Injector },
41347
+ { type: i0.ChangeDetectorRef },
41243
41348
  { type: TransactionSearchService }
41244
41349
  ]; };
41245
41350
  TransactionFilterComponent.propDecorators = {
@@ -41472,10 +41577,11 @@
41472
41577
 
41473
41578
  var TransactionSearchSalesLineSelectTileComponent = /** @class */ (function (_super) {
41474
41579
  __extends(TransactionSearchSalesLineSelectTileComponent, _super);
41475
- function TransactionSearchSalesLineSelectTileComponent(iconCacheService, transactionService) {
41476
- var _this = _super.call(this, iconCacheService) || this;
41580
+ function TransactionSearchSalesLineSelectTileComponent(iconCacheService, transactionService, changeDetector) {
41581
+ var _this = _super.call(this, iconCacheService, changeDetector) || this;
41477
41582
  _this.iconCacheService = iconCacheService;
41478
41583
  _this.transactionService = transactionService;
41584
+ _this.changeDetector = changeDetector;
41479
41585
  _this.lineClicked = new i0.EventEmitter();
41480
41586
  return _this;
41481
41587
  }
@@ -41506,17 +41612,18 @@
41506
41612
  }(TransactionSearchTileBaseComponent));
41507
41613
  TransactionSearchSalesLineSelectTileComponent.decorators = [
41508
41614
  { type: i0.Component, args: [{
41509
- selector: "co-transaction-search-sales-line-select-tile",
41510
- template: "\n <div class=\"co-transaction-search-sales-line-select-tile-wrapper \" observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange($event)\">\n <co-transaction-search-sales-order-tile [transaction]=\"transaction\" [showAvatar]=\"true\">\n </co-transaction-search-sales-order-tile>\n <div class=\"vertical-line \"></div>\n <div class=\"order-lines-container co-small-scrollbar\">\n <div *ngFor=\"let line of lines\" >\n <co-transaction-line-tile [line]=\"line\" (click)=\"tileClicked(line)\"></co-transaction-line-tile>\n </div>\n </div>\n </div>\n ",
41615
+ selector: 'co-transaction-search-sales-line-select-tile',
41616
+ template: "\n <div class=\"co-transaction-search-sales-line-select-tile-wrapper \" observeVisibility #observer=visibilityObserve\n (visibilityChange)=\"handleVisibilityChange($event)\">\n <co-transaction-search-sales-order-tile [transaction]=\"transaction\" [showAvatar]=\"true\">\n </co-transaction-search-sales-order-tile>\n <div class=\"vertical-line \"></div>\n <div class=\"order-lines-container co-small-scrollbar\">\n <div *ngFor=\"let line of lines\">\n <co-transaction-line-tile [line]=\"line\" (click)=\"tileClicked(line)\"></co-transaction-line-tile>\n </div>\n </div>\n </div>\n ",
41511
41617
  encapsulation: i0.ViewEncapsulation.None
41512
41618
  },] }
41513
41619
  ];
41514
41620
  TransactionSearchSalesLineSelectTileComponent.ctorParameters = function () { return [
41515
41621
  { type: IconCacheService },
41516
- { type: TransactionService }
41622
+ { type: TransactionService },
41623
+ { type: i0.ChangeDetectorRef }
41517
41624
  ]; };
41518
41625
  TransactionSearchSalesLineSelectTileComponent.propDecorators = {
41519
- showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-sales-line-select-tile",] }],
41626
+ showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-search-sales-line-select-tile',] }],
41520
41627
  lineClicked: [{ type: i0.Output }]
41521
41628
  };
41522
41629
 
@@ -42612,6 +42719,8 @@
42612
42719
  this.transactionPlanning = false;
42613
42720
  this.cashRegistersDirty = false;
42614
42721
  this.relationChange = new i0.EventEmitter();
42722
+ //This output exists for bundle purposes.
42723
+ this.serviceRequested = new i0.EventEmitter();
42615
42724
  this.showQuickAccess = true;
42616
42725
  this.showButtonBar = true;
42617
42726
  this.activeViewMode = corecomponents_v12.ContentViewMode.List;
@@ -42856,6 +42965,8 @@
42856
42965
  /*this._transactionConnectorService.createServiceOrderWithSourceTransactionLine(request).then((result: TransactionInfoResponse) => {
42857
42966
  if(result) {*/
42858
42967
  this._transactionEventService.requestCreateServiceOrderFromTransactionLine.next({ transaction: this.transaction, lineNr: lineNr });
42968
+ //added for bundle purposes so we can pass the value along without the event service. Use the event service in all other cases.
42969
+ this.serviceRequested.emit({ transactionNr: this.transaction.transactionInfo.transactionNr, transactionId: this.transaction.transactionInfo.id, lineNr: lineNr });
42859
42970
  /* }
42860
42971
  });*/
42861
42972
  }
@@ -42998,8 +43109,9 @@
42998
43109
  TransactionInternalComponent.decorators = [
42999
43110
  { type: i0.Component, args: [{
43000
43111
  selector: 'co-transaction-internal',
43001
- template: "\n <ng-container *ngIf=\"loaded\">\n <co-click-block></co-click-block>\n <co-transaction-header\n *ngIf=\"showHeader\"\n [transaction]=\"transaction\"\n [relation]=\"relation\"\n (relationChange)=\"handleRelationChange($event)\">\n </co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access\n *ngIf=\"showQuickAccess\"\n class=\"transaction-lines-header-item\"\n [transaction]=\"transaction\"\n [relation]=\"relation\"\n [activeCategory]=\"activeCategory\">\n </co-transaction-quick-access>\n <co-transaction-button-bar\n *ngIf=\"showButtonBar\"\n class=\"transaction-lines-header-item\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\">\n </co-transaction-button-bar>\n\n <div class=\"transaction-lines-header-item right\">\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.handledBy\"\n [screenConfigurationObject]=\"cfgNames.HeaderHandledBy\"\n screenConfigNativeElement>\n </co-avatar>\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.branch?.relationId\"\n [screenConfigurationObject]=\"cfgNames.HeaderBranch\"\n screenConfigNativeElement>\n </co-avatar>\n <co-view-mode-buttons\n *ngIf=\"!shouldShowTiles() && showViewModeButtons\"\n [showViewModes]=\"[viewModes.List, viewModes.Tiles]\"\n (viewModeChange)=\"handleViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n\n <div class=\"transaction-lines-content-wrapper\">\n <!--<co-transaction-document-button-bar [transaction]=\"transaction\"></co-transaction-document-button-bar>-->\n <div class=\"transaction-lines-content\">\n <div *ngIf=\"activeCategory === category.ServiceOrderService\">\n <co-transaction-service-overview [posOrderData]=\"posOrderData\" [transaction]=\"transaction\"></co-transaction-service-overview>\n </div>\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles || shouldShowTiles() || transactionPlanning\">\n <co-transaction-cards\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n [class.planning-cards]=\"transactionPlanning\">\n </co-transaction-cards>\n </div>\n <div class=\"transaction-lines-wrapper\"\n *ngIf=\"(activeViewMode === viewModes.List && !shouldShowTiles()) && activeCategory !== category.ServiceOrderService && !transactionPlanning\">\n <co-transaction-lines\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\">\n </co-transaction-lines>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <div class=\"transaction-footer-left\">\n <co-add-product\n *ngIf=\"activeCategory === categories.SalesOrderCashRegister ||\n activeCategory === categories.SalesOrderOverview ||\n activeCategory === categories.PurchaseOrderOverview ||\n activeCategory === categories.SalesOrderQuotation ||\n activeCategory === categories.ServiceOrderOverview\">\n </co-add-product>\n <co-transaction-button\n class=\"custom-width text-rule\"\n *ngIf=\"activeCategory !== categories.ServiceOrderService\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionText()\">\n </co-transaction-button>\n </div>\n\n <div class=\"transaction-footer-center\">\n <co-transaction-margin *ngIf=\"activeCategory === categories.SalesOrderMarginInfo\"\n [transactionInfo]=\"transaction.transactionInfo\"\n ></co-transaction-margin>\n </div>\n\n <co-transaction-totals\n *ngIf=\"activeCategory !== category.ServiceOrderService\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionTotal]=\"transaction.transactionTotal\"\n [showDiscount]=\"true\">\n </co-transaction-totals>\n </div>\n </div>\n\n <co-transaction-lines-side-panel\n *ngIf=\"\n transaction &&\n (transaction.transactionInfo.transactionKind === transactionKind.CashDesk && !fullyInvoiced())\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n\n <co-transaction-line-side-panel\n *ngIf=\"showSidePanel\"\n [transaction]=\"transaction\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"sidePanelTransactionLine\"\n [activeCategory]=\"activeCategory\"\n (cancelClick)=\"showSidePanel = false\">\n </co-transaction-line-side-panel>\n\n <!--Popup voor wijzigen volgorde van tekstregels-->\n <co-transaction-article-text-overview\n *ngIf=\"showArticleTextOverview\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (closeClick)=\"closeArticleTextOverview()\"\n (cancelClick)=\"closeArticleTextOverview()\">\n </co-transaction-article-text-overview>\n\n <!--Popup voor aanmaken en updaten transactietekstregels-->\n <co-transaction-article-text\n *ngIf=\"showTransactionText\"\n [header]=\"'ORDER_TEXT_LINE' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [editText]=\"textToEdit\"\n [orderLineSetDTO]=\"selectedOrderLineSetDTO\"\n [transactionLine]=\"transactionLine\"\n (saveClick)=\"saveTransactionLineText($event)\"\n (closeClick)=\"closeTransactionText()\"\n (cancelClick)=\"closeTransactionText()\"\n (saveOrderLineSetClick)=\"saveOrderLineSet($event)\">\n </co-transaction-article-text>\n\n <!--Popup voor aanmaken en updaten artikeltekstregels-->\n <co-transaction-article-text\n *ngIf=\"showArticleText\"\n [header]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [showArticleImageDescription]=\"transactionLine.articleBound\"\n [showImage]=\"false\"\n [articleLineNr]=\"transactionLine.lineNr\"\n [articleRef]=\"transactionLine.articleNumber\"\n [transactionLine]=\"transactionLine\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveArticleLineText($event)\"\n (closeClick)=\"closeArticleText()\"\n (cancelClick)=\"closeArticleText()\">\n </co-transaction-article-text>\n\n <co-transaction-copy-order\n *ngIf=\"showCopyOrderDialog\"\n [transaction]=\"transaction\"\n (closeDialog)=\"showCopyOrderDialog = false\">\n </co-transaction-copy-order>\n </div>\n </ng-container>\n ",
43002
- encapsulation: i0.ViewEncapsulation.None
43112
+ template: "\n <ng-container *ngIf=\"loaded\">\n <co-click-block></co-click-block>\n <co-transaction-header\n *ngIf=\"showHeader\"\n [transaction]=\"transaction\"\n [relation]=\"relation\"\n (relationChange)=\"handleRelationChange($event)\">\n </co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access\n *ngIf=\"showQuickAccess\"\n class=\"transaction-lines-header-item\"\n [transaction]=\"transaction\"\n [relation]=\"relation\"\n [activeCategory]=\"activeCategory\">\n </co-transaction-quick-access>\n <co-transaction-button-bar\n *ngIf=\"showButtonBar\"\n class=\"transaction-lines-header-item\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\">\n </co-transaction-button-bar>\n\n <div class=\"transaction-lines-header-item right\">\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.handledBy\"\n [screenConfigurationObject]=\"cfgNames.HeaderHandledBy\"\n screenConfigNativeElement>\n </co-avatar>\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.branch?.relationId\"\n [screenConfigurationObject]=\"cfgNames.HeaderBranch\"\n screenConfigNativeElement>\n </co-avatar>\n <co-view-mode-buttons *ngIf=\"!shouldShowTiles() && showViewModeButtons\"\n [showViewModes]=\"[viewModes.List, viewModes.Tiles]\"\n (viewModeChange)=\"handleViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n\n <div class=\"transaction-lines-content-wrapper\">\n <!--<co-transaction-document-button-bar [transaction]=\"transaction\"></co-transaction-document-button-bar>-->\n <div class=\"transaction-lines-content\">\n <div *ngIf=\"activeCategory === category.ServiceOrderService\">\n <co-transaction-service-overview [posOrderData]=\"posOrderData\" [transaction]=\"transaction\"></co-transaction-service-overview>\n </div>\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles || shouldShowTiles() || transactionPlanning\">\n <co-transaction-cards\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n [class.planning-cards]=\"transactionPlanning\">\n </co-transaction-cards>\n </div>\n <div class=\"transaction-lines-wrapper\"\n *ngIf=\"(activeViewMode === viewModes.List && !shouldShowTiles()) && activeCategory !== category.ServiceOrderService && !transactionPlanning\">\n <co-transaction-lines\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\">\n </co-transaction-lines>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <div class=\"transaction-footer-left\">\n <co-add-product\n *ngIf=\"activeCategory === categories.SalesOrderCashRegister ||\n activeCategory === categories.SalesOrderOverview ||\n activeCategory === categories.PurchaseOrderOverview ||\n activeCategory === categories.SalesOrderQuotation ||\n activeCategory === categories.ServiceOrderOverview\">\n </co-add-product>\n <co-transaction-button *ngIf=\"activeCategory !== categories.ServiceOrderService\"\n class=\"custom-width text-rule\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionText()\">\n </co-transaction-button>\n </div>\n\n <div class=\"transaction-footer-center\">\n <co-transaction-margin *ngIf=\"activeCategory === categories.SalesOrderMarginInfo\"\n [transactionInfo]=\"transaction.transactionInfo\"\n ></co-transaction-margin>\n </div>\n <co-transaction-totals *ngIf=\"activeCategory !== category.ServiceOrderService\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionTotal]=\"transaction.transactionTotal\"\n [showDiscount]=\"true\">\n </co-transaction-totals>\n </div>\n </div>\n\n <co-transaction-lines-side-panel *ngIf=\"transaction && (transaction.transactionInfo.transactionKind === transactionKind.CashDesk && !fullyInvoiced())\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n\n <co-transaction-line-side-panel *ngIf=\"showSidePanel\"\n [transaction]=\"transaction\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"sidePanelTransactionLine\"\n [activeCategory]=\"activeCategory\"\n (cancelClick)=\"showSidePanel = false\">\n </co-transaction-line-side-panel>\n\n <!--Popup voor wijzigen volgorde van tekstregels-->\n <co-transaction-article-text-overview *ngIf=\"showArticleTextOverview\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (closeClick)=\"closeArticleTextOverview()\"\n (cancelClick)=\"closeArticleTextOverview()\">\n </co-transaction-article-text-overview>\n\n <!--Popup voor aanmaken en updaten transactietekstregels-->\n <co-transaction-article-text *ngIf=\"showTransactionText\"\n [header]=\"'ORDER_TEXT_LINE' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [editText]=\"textToEdit\"\n [orderLineSetDTO]=\"selectedOrderLineSetDTO\"\n [transactionLine]=\"transactionLine\"\n (saveClick)=\"saveTransactionLineText($event)\"\n (closeClick)=\"closeTransactionText()\"\n (cancelClick)=\"closeTransactionText()\"\n (saveOrderLineSetClick)=\"saveOrderLineSet($event)\">\n </co-transaction-article-text>\n\n <!--Popup voor aanmaken en updaten artikeltekstregels-->\n <co-transaction-article-text *ngIf=\"showArticleText\"\n [header]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [showArticleImageDescription]=\"transactionLine.articleBound\"\n [showImage]=\"false\"\n [articleLineNr]=\"transactionLine.lineNr\"\n [articleRef]=\"transactionLine.articleNumber\"\n [transactionLine]=\"transactionLine\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveArticleLineText($event)\"\n (closeClick)=\"closeArticleText()\"\n (cancelClick)=\"closeArticleText()\">\n </co-transaction-article-text>\n\n <co-transaction-copy-order *ngIf=\"showCopyOrderDialog\"\n [transaction]=\"transaction\"\n (closeDialog)=\"showCopyOrderDialog = false\">\n </co-transaction-copy-order>\n </div>\n </ng-container>\n ",
43113
+ encapsulation: i0.ViewEncapsulation.None,
43114
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
43003
43115
  },] }
43004
43116
  ];
43005
43117
  TransactionInternalComponent.ctorParameters = function () { return [
@@ -43028,6 +43140,7 @@
43028
43140
  transactionPlanning: [{ type: i0.Input }],
43029
43141
  cashRegistersDirty: [{ type: i0.Input }],
43030
43142
  relationChange: [{ type: i0.Output }],
43143
+ serviceRequested: [{ type: i0.Output }],
43031
43144
  showQuickAccess: [{ type: i0.HostBinding, args: ['class.show-quick-access',] }, { type: i0.Input }],
43032
43145
  showButtonBar: [{ type: i0.HostBinding, args: ['class.show-button-bar',] }, { type: i0.Input }],
43033
43146
  showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-internal',] }],
@@ -43108,6 +43221,7 @@
43108
43221
  }), this.transactionService.relationUpdated.subscribe(function (relation) {
43109
43222
  if (relation !== undefined) {
43110
43223
  _this.loaded = true;
43224
+ _this.changeDetector.markForCheck();
43111
43225
  }
43112
43226
  }));
43113
43227
  };
@@ -43118,6 +43232,7 @@
43118
43232
  TransactionHeaderRelationComponent.prototype.relationSet = function () {
43119
43233
  _super.prototype.relationSet.call(this);
43120
43234
  this._setRelationAddress();
43235
+ this.changeDetector.markForCheck();
43121
43236
  };
43122
43237
  TransactionHeaderRelationComponent.prototype.transactionInfoSet = function () {
43123
43238
  _super.prototype.transactionInfoSet.call(this);
@@ -43150,7 +43265,8 @@
43150
43265
  useExisting: i0.forwardRef(function () { return TransactionHeaderRelationComponent; })
43151
43266
  }
43152
43267
  ],
43153
- encapsulation: i0.ViewEncapsulation.None
43268
+ encapsulation: i0.ViewEncapsulation.None,
43269
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
43154
43270
  },] }
43155
43271
  ];
43156
43272
  TransactionHeaderRelationComponent.propDecorators = {
@@ -43381,7 +43497,7 @@
43381
43497
  TransactionHeaderRemainingAmountComponent.prototype.ngOnInit = function () {
43382
43498
  var _this = this;
43383
43499
  this._subs.push(this._transactionEventService.quantitySelectedLineChanged.subscribe(function (changed) {
43384
- if (changed) {
43500
+ if (changed && !_this.transactionService.manualSaveParam) {
43385
43501
  var request = new calculateAmountToPayRequest.CalculateAmountToPayRequest();
43386
43502
  request.transactionUuid = _this.transactionUuid;
43387
43503
  _this._paymentConnectorService.calculateAmountToPayWithLineSelection(request).then(function (data) {
@@ -43635,6 +43751,7 @@
43635
43751
  { type: i0.Component, args: [{
43636
43752
  selector: "co-quick-send-button",
43637
43753
  template: "\n <div class=\"quick-send-button-wrapper\" [class.disabled]=\"showLoader\" [class.no-dialog]=\"!showSendMethodDialogIcon\">\n <co-loader *ngIf=\"showLoader\"></co-loader>\n <div class=\"icon-wrapper-flat-left\" (click)=\"sendIconClicked.emit($event)\">\n <div class=\"icons-and-title-wrapper\">\n <div class=\"icons-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icon)\" class=\"icon-send\"></co-icon>\n <co-icon *ngIf=\"showSendMethodIcon\" class=\"icon-method\"\n [iconData]=\"iconCacheService.getIcon(defaultMethodIcon ? defaultMethodIcon : icons.AtSolid)\"></co-icon>\n </div>\n <span class=\"send-button-title\" [textContent]=\"title | localize\"></span>\n </div>\n </div>\n <div class=\"icons-spacer\" *ngIf=\"showSendMethodDialogIcon\"></div>\n <div class=\"icon-wrapper-flat-right\" *ngIf=\"showSendMethodDialogIcon\" (click)=\"openSendMethodDialog.emit($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.EllipsisVerticalSolid)\"></co-icon>\n </div>\n </div>\n ",
43754
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
43638
43755
  encapsulation: i0.ViewEncapsulation.None
43639
43756
  },] }
43640
43757
  ];
@@ -44926,7 +45043,7 @@
44926
45043
  TransactionLineSidePanelDefaultComponent.decorators = [
44927
45044
  { type: i0.Component, args: [{
44928
45045
  selector: "co-transaction-line-side-panel-default",
44929
- template: "\n <div class=\"default-details-wrapper form-and-buttons\">\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'PRICING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-quantity class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-quantity>\n <co-transaction-line-price class=\"side-panel-input\" [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-price>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'NET_LINE_TOTAL' | localize\" [model]=\"transactionLine.netLineTotal\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'LOGISTICS_AND_PLANNING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_TIME' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_COSTS' | localize\" [type]=\"'number'\" [model]=\"transactionLine.assemblyCost\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'MODIFICATION_TIME' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'IN_OUT_COLLECTION' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-supplier-button class=\"side-panel-input\" [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-supplier-button>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [model]=\"transactionLine.supplierArticleNumber\" [readonly]=\"readonly\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'OTHER' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-description class=\"side-panel-input\"\n [transactionLine]=\"transactionLine\"></co-transaction-line-description>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-reference class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-reference>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'CUSTOMER' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ORDER_RULESET' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_DATE' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_USER' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'FABRICATION_COST' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'FABRICATION_COST_LINE_TOTAL' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'TRANSPORT_COST' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'TRANSPORT_COST_LINE_TOTAL' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n </div>\n ",
45046
+ template: "\n <div class=\"default-details-wrapper form-and-buttons\">\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'PRICING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-quantity class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-quantity>\n <co-transaction-line-price class=\"side-panel-input\" [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-price>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'NET_LINE_TOTAL' | localize\" [model]=\"transactionLine.netLineTotal\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'LOGISTICS_AND_PLANNING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_TIME' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_COSTS' | localize\" [type]=\"'number'\" [model]=\"transactionLine.assemblyCost\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'MODIFICATION_TIME' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'IN_OUT_COLLECTION' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-supplier-button class=\"side-panel-input\" [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-supplier-button>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [model]=\"transactionLine.supplierArticleNumber\" [readonly]=\"readonly\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'OTHER' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-description class=\"side-panel-input\"\n [customHeight]=\"false\"\n [transactionLine]=\"transactionLine\"></co-transaction-line-description>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-reference class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-reference>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'CUSTOMER' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ORDER_RULESET' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_DATE' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_USER' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'FABRICATION_COST' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'FABRICATION_COST_LINE_TOTAL' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'TRANSPORT_COST' | localize\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'TRANSPORT_COST_LINE_TOTAL' | localize\" [readonly]=\"readonly\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n </div>\n ",
44930
45047
  encapsulation: i0.ViewEncapsulation.None
44931
45048
  },] }
44932
45049
  ];
@@ -47771,7 +47888,8 @@
47771
47888
  this.searchViewModeService = searchViewModeService;
47772
47889
  this.icon = Icon;
47773
47890
  this.contentViewModes = corecomponents_v12.ContentViewMode;
47774
- this.searchViewModes = exports.SearchViewMode;
47891
+ this.viewMode = exports.SearchViewMode;
47892
+ this.barViewMode = exports.SearchbarViewMode;
47775
47893
  this.iconSlideIn = this.iconCacheService.getIcon(this.icon.SlideIn);
47776
47894
  this.iconResize = this.iconCacheService.getIcon(this.icon.ExpandSolid);
47777
47895
  this.iconCancel = this.iconCacheService.getIcon(this.icon.XSolid);
@@ -47810,7 +47928,7 @@
47810
47928
  SearchHeaderButtonsComponent.decorators = [
47811
47929
  { type: i0.Component, args: [{
47812
47930
  selector: "co-search-header-buttons",
47813
- template: "\n <div class=\"search-header-buttons-wrapper\">\n <div class=\"upper-header\">\n <div class=\"header-buttons-wrapper\">\n <div class=\"close-search-button-wrapper button-wrapper\" *ngIf=\"!fullscreen\"\n [ngClass]=\"searchViewModeService.calculateClasses()\">\n <co-button [iconData]=\"iconResize\"\n class=\"toggle-sidebar-button transparent\"\n (click)=\"onResizeClick()\"></co-button>\n <co-button [iconData]=\"iconCancel\"\n class=\"toggle-sidebar-button transparent\"\n (click)=\"onCloseSearchClick()\">\n </co-button>\n </div>\n </div>\n </div>\n <div class=\"header-searchbar-wrapper\">\n <div class=\"header-searchbar-title\" [textContent]=\"headerLabel | localize\" *ngIf=\"fullscreen\"\n @showHideLabel></div>\n <co-button class=\"add-button transparent\" [iconData]=\"iconCacheService.getIcon(icon.PlusSimple)\"\n (click)=\"onAddButtonClick()\"></co-button>\n\n <div class=\"search-header-content-wrapper\" [ngClass]=\"searchViewModeService.calculateClasses()\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"header-search-bar-button-wrapper button-wrapper\">\n <co-button class=\"search-filter-button\"\n [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"onFilterButtonClick()\">\n </co-button>\n <co-button *ngIf=\"fullscreen\" [iconData]=\"iconSlideIn\"\n class=\"toggle-sidebar-button transparent fullscreen\"\n (click)=\"onResizeClick()\"></co-button>\n </div>\n </div>\n <div class=\"view-mode-buttons-wrapper\">\n <co-view-mode-buttons\n *ngIf=\"fullscreen\"\n [showViewModes]=\"[contentViewModes.Tiles, contentViewModes.Grid]\"\n (viewModeChange)=\"onViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n ",
47931
+ template: "\n <div class=\"search-header-buttons-wrapper\">\n <div class=\"upper-header\">\n <div class=\"header-buttons-wrapper\">\n <div class=\"close-search-button-wrapper button-wrapper\" *ngIf=\"!fullscreen\"\n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n <co-button [iconData]=\"iconResize\"\n class=\"toggle-sidebar-button transparent\"\n (click)=\"onResizeClick()\"></co-button>\n <co-button [iconData]=\"iconCancel\"\n class=\"toggle-sidebar-button transparent\"\n (click)=\"onCloseSearchClick()\">\n </co-button>\n </div>\n </div>\n </div>\n <div class=\"header-searchbar-wrapper\">\n <div class=\"header-searchbar-title\" [textContent]=\"headerLabel | localize\" *ngIf=\"fullscreen\"\n @showHideLabel></div>\n <co-button class=\"add-button transparent\" [iconData]=\"iconCacheService.getIcon(icon.PlusSimple)\"\n (click)=\"onAddButtonClick()\"></co-button>\n\n <div class=\"search-header-content-wrapper\"\n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"header-search-bar-button-wrapper button-wrapper\">\n <co-button class=\"search-filter-button\"\n [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"onFilterButtonClick()\">\n </co-button>\n <co-button *ngIf=\"fullscreen\" [iconData]=\"iconSlideIn\"\n class=\"toggle-sidebar-button transparent fullscreen\"\n (click)=\"onResizeClick()\"></co-button>\n </div>\n </div>\n <div class=\"view-mode-buttons-wrapper\">\n <co-view-mode-buttons\n *ngIf=\"fullscreen\"\n [showViewModes]=\"[contentViewModes.Tiles, contentViewModes.Grid]\"\n (viewModeChange)=\"onViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n ",
47814
47932
  animations: [
47815
47933
  animations.trigger("showHideLabel", [
47816
47934
  animations.state("void", animations.style({ opacity: 0 })),
@@ -47860,6 +47978,8 @@
47860
47978
  var SearchComponent = /** @class */ (function () {
47861
47979
  function SearchComponent(searchViewModeService) {
47862
47980
  this.searchViewModeService = searchViewModeService;
47981
+ this.viewMode = exports.SearchViewMode;
47982
+ this.barViewMode = exports.SearchbarViewMode;
47863
47983
  this.icon = Icon;
47864
47984
  this.headerLabel = '';
47865
47985
  this.addClick = new i0.EventEmitter();
@@ -47887,7 +48007,7 @@
47887
48007
  SearchComponent.decorators = [
47888
48008
  { type: i0.Component, args: [{
47889
48009
  selector: 'co-search',
47890
- template: "\n <div class=\"search-main-wrapper\">\n <div class=\"search-wrapper\" [ngClass]=searchViewModeService.calculateClasses()>\n\n <!--filter panel-->\n <div class=\"search-filter-panel narrow-scrollbar\"\n [ngClass]=\"searchViewModeService.calculateClasses()\"\n *ngIf=\"searchViewModeService.showFilterSidebar\" @showHideFilterSidebar>\n <co-search-filter-panel (resetFilterClick)=\"onResetFilterClick()\">\n <ng-content select=\"[search-filter-panel]\"></ng-content>\n </co-search-filter-panel>\n </div>\n\n <!--search header-->\n <div class=\"search-header-result-wrapper co-small-scrollbar\">\n <div class=\"search-header\">\n <co-search-header-buttons\n [headerLabel]=\"headerLabel\"\n (addClick)=\"onAddClick()\">\n <ng-content select=\"[search-header]\"></ng-content>\n </co-search-header-buttons>\n </div>\n\n <!--search result-->\n <div class=\"search-result\" [ngClass]=\"searchViewModeService.calculateClasses()\">\n <ng-content select=\"[search-result]\"></ng-content>\n </div>\n </div>\n </div>\n\n <!--routing content-->\n <div class=\"search-content-wrapper\"\n [ngClass]=\"searchViewModeService.calculateClasses()\">\n <!--routing content?-->\n <ng-content></ng-content>\n </div>\n </div>\n ",
48010
+ template: "\n <div class=\"search-main-wrapper\">\n <div class=\"search-wrapper\" \n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n\n <!--filter panel-->\n <div class=\"search-filter-panel narrow-scrollbar\" *ngIf=\"searchViewModeService.showFilterSidebar\" @showHideFilterSidebar\n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n <co-search-filter-panel (resetFilterClick)=\"onResetFilterClick()\">\n <ng-content select=\"[search-filter-panel]\"></ng-content>\n </co-search-filter-panel>\n </div>\n\n <!--search header-->\n <div class=\"search-header-result-wrapper co-small-scrollbar\">\n <div class=\"search-header\">\n <co-search-header-buttons\n [headerLabel]=\"headerLabel\"\n (addClick)=\"onAddClick()\">\n <ng-content select=\"[search-header]\"></ng-content>\n </co-search-header-buttons>\n </div>\n\n <!--search result-->\n <div class=\"search-result\"\n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n <ng-content select=\"[search-result]\"></ng-content>\n </div>\n </div>\n </div>\n\n <!--routing content-->\n <div class=\"search-content-wrapper\"\n [class.fullscreen]=\"searchViewModeService.activeSearchViewMode === viewMode.FullScreen\"\n [class.sidebar]=\"searchViewModeService.activeSearchViewMode !== viewMode.FullScreen\"\n [class.collapsed]=\"searchViewModeService.activeSearchBarViewMode === barViewMode.Collapsed\"\n [class.expanced]=\"searchViewModeService.activeSearchBarViewMode !== barViewMode.Collapsed\">\n <!--routing content?-->\n <ng-content></ng-content>\n </div>\n </div>\n ",
47891
48011
  animations: [
47892
48012
  animations.trigger("showHideFilterSidebar", [
47893
48013
  animations.state("void", animations.style({ transform: 'translateX(-100%)' })),
@@ -49793,6 +49913,17 @@
49793
49913
  this._subs = [];
49794
49914
  this._subs.push(this._transactionEventService.createTransaction.subscribe(function () { return _this.addTransactionClick.emit(); }));
49795
49915
  }
49916
+ Object.defineProperty(TransactionSearchComponent.prototype, "overrideSearchType", {
49917
+ //Only use this for bundle purposes please!
49918
+ set: function (kind) {
49919
+ if (!(kind === null || kind === undefined)) {
49920
+ this.transactionSearchService.transactionType = kind;
49921
+ this.transactionSearchService.searchTransactions();
49922
+ }
49923
+ },
49924
+ enumerable: false,
49925
+ configurable: true
49926
+ });
49796
49927
  TransactionSearchComponent.prototype.showClass = function () {
49797
49928
  return true;
49798
49929
  };
@@ -49831,6 +49962,7 @@
49831
49962
  ]; };
49832
49963
  TransactionSearchComponent.propDecorators = {
49833
49964
  draggableTransactions: [{ type: i0.Input }],
49965
+ overrideSearchType: [{ type: i0.Input }],
49834
49966
  transactionClick: [{ type: i0.Output }],
49835
49967
  addTransactionClick: [{ type: i0.Output }],
49836
49968
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
@@ -53785,7 +53917,7 @@
53785
53917
  switch (_d.label) {
53786
53918
  case 0:
53787
53919
  _a = this;
53788
- return [4 /*yield*/, this.transactionService.getPriority("NL")];
53920
+ return [4 /*yield*/, this.transactionService.getPriority('NL')];
53789
53921
  case 1:
53790
53922
  _a.priorityDomainColl = _d.sent();
53791
53923
  _b = this;
@@ -53793,7 +53925,7 @@
53793
53925
  case 2:
53794
53926
  _b.causeCodeColl = _d.sent();
53795
53927
  _c = this;
53796
- return [4 /*yield*/, this.transactionService.getEntryTypes("NL")];
53928
+ return [4 /*yield*/, this.transactionService.getEntryTypes('NL')];
53797
53929
  case 3:
53798
53930
  _c.entryTypeColl = _d.sent();
53799
53931
  this.priorityModel = this.priorityDomainColl.find(function (p) { return p.codeAsNumber === _this.transactionServiceInfo.priority; });
@@ -53824,6 +53956,7 @@
53824
53956
  return [4 /*yield*/, this.transactionService.getHistoricActivities(this.transactionInfo.id)];
53825
53957
  case 1:
53826
53958
  _a.activities = _b.sent();
53959
+ this.detectChanges();
53827
53960
  return [2 /*return*/];
53828
53961
  }
53829
53962
  });
@@ -53833,8 +53966,11 @@
53833
53966
  this.getActivities();
53834
53967
  };
53835
53968
  TransactionServiceOverviewComponent.prototype.fullActivitiesRefreshRequested = function () {
53969
+ var _this = this;
53836
53970
  this.getActivities();
53837
- this.openActivities.getActivities();
53971
+ this.openActivities.getActivities().then(function () {
53972
+ _this.detectChanges();
53973
+ });
53838
53974
  };
53839
53975
  TransactionServiceOverviewComponent.prototype.fetchDocuments = function () {
53840
53976
  var _this = this;
@@ -53848,6 +53984,7 @@
53848
53984
  case 1: return [2 /*return*/, _a.documentBody = _b.sent()];
53849
53985
  }
53850
53986
  }); }); });
53987
+ _this.detectChanges();
53851
53988
  });
53852
53989
  };
53853
53990
  TransactionServiceOverviewComponent.prototype.setPriority = function (priority) {
@@ -53865,6 +54002,7 @@
53865
54002
  return [4 /*yield*/, this.transactionService.updateServiceHeaderPriority(this.transactionServiceInfo.priority, true)];
53866
54003
  case 1:
53867
54004
  _a.sent();
54005
+ this.detectChanges();
53868
54006
  return [2 /*return*/];
53869
54007
  }
53870
54008
  });
@@ -53885,6 +54023,7 @@
53885
54023
  return [4 /*yield*/, this.transactionService.updateServiceHeaderCauseCode(this.transactionServiceInfo.causeCode, true)];
53886
54024
  case 1:
53887
54025
  _a.sent();
54026
+ this.detectChanges();
53888
54027
  return [2 /*return*/];
53889
54028
  }
53890
54029
  });
@@ -53905,6 +54044,7 @@
53905
54044
  return [4 /*yield*/, this.transactionService.updateServiceHeaderEntryType(this.transactionServiceInfo.entryType, true)];
53906
54045
  case 1:
53907
54046
  _a.sent();
54047
+ this.detectChanges();
53908
54048
  return [2 /*return*/];
53909
54049
  }
53910
54050
  });
@@ -53920,7 +54060,7 @@
53920
54060
  response = _a.sent();
53921
54061
  if (!response) return [3 /*break*/, 3];
53922
54062
  this.fetchDocuments();
53923
- return [4 /*yield*/, this._dialogService.showToast("DATA_SAVED", true)];
54063
+ return [4 /*yield*/, this._dialogService.showToast('DATA_SAVED', true)];
53924
54064
  case 2:
53925
54065
  _a.sent();
53926
54066
  _a.label = 3;
@@ -53939,7 +54079,7 @@
53939
54079
  response = _a.sent();
53940
54080
  if (!(response && response.success)) return [3 /*break*/, 3];
53941
54081
  this.fetchDocuments();
53942
- return [4 /*yield*/, this._dialogService.showToast("DATA_SAVED", true)];
54082
+ return [4 /*yield*/, this._dialogService.showToast('DATA_SAVED', true)];
53943
54083
  case 2:
53944
54084
  _a.sent();
53945
54085
  _a.label = 3;
@@ -53964,7 +54104,7 @@
53964
54104
  };
53965
54105
  TransactionServiceOverviewComponent.prototype.sortDocumentList = function () {
53966
54106
  sortUtils.SortUtils.SortObjectArray(this.documents, [{
53967
- property: "documentId",
54107
+ property: 'documentId',
53968
54108
  direction: sortDirection.SortDirection.Ascending,
53969
54109
  type: sortType_enum.SortType.Number
53970
54110
  }]);
@@ -53973,8 +54113,8 @@
53973
54113
  }(TransactionBaseComponent));
53974
54114
  TransactionServiceOverviewComponent.decorators = [
53975
54115
  { type: i0.Component, args: [{
53976
- selector: "co-transaction-service-overview",
53977
- template: "\n <div class=\"service-overview-wrapper\">\n <div class=\"message-and-task-wrapper\">\n <div class=\"service-message-and-image-wrapper\">\n <div class=\"service-message-wrapper\">\n <div class=\"service-message\">\n <label class=\"label service-label\" [textContent]=\"'SERVICE_REPORT'| localize\"></label>\n <span *ngIf=\"transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers\"\n [textContent]=\"transactionServiceInfo.wizardQuestionsAndAnswers\" [screenConfigurationObject]=\"cfgNames.ServiceWizardMessage\" screenConfigNativeElement\n ></span> <!---->\n <co-transaction-service-message class=\"transaction-service-message\" [transaction]=\"transaction\">\n </co-transaction-service-message>\n </div>\n <co-files-upload (documentChangeEvent)=\"upsertDocument($event)\" [screenConfigurationObject]=\"cfgNames.ServiceOverviewImage\"\n (documentDeleted)=\"deleteDocument($event)\"\n [label]=\"'ADD_IMAGES' | localize\"\n [documents]=\"documents\"\n [isEditable]=\"false\" > <!---->\n </co-files-upload>\n </div>\n <div class=\"service-order-lines-wrapper\">\n <div class=\"service-message-extra-wrapper\">\n <co-list-of-values [label]=\"'PRIORITY'| localize\" displayField=\"description\" [model]=\"priorityModel\"\n [collection]=\"priorityDomainColl\" [screenConfigurationObject]=\"cfgNames.ServicePriority\"\n (modelChange)=\"setPriority($event)\"></co-list-of-values> <!---->\n <co-list-of-values [label]=\"'CAUSE_CODE' | localize\" displayField=\"description\" [model]=\"causeCodeModel\"\n [collection]=\"causeCodeColl\" [screenConfigurationObject]=\"cfgNames.ServiceCauseCode\"\n (modelChange)=\"setCauseCode($event)\"></co-list-of-values> <!---->\n <co-list-of-values [label]=\"'ENTRY_TYPE' | localize\" displayField=\"description\" [model]=\"entryTypeModel\"\n [collection]=\"entryTypeColl\" [screenConfigurationObject]=\"cfgNames.ServiceEntryType\"\n (modelChange)=\"setEntryType($event)\"></co-list-of-values> <!---->\n </div>\n <co-transaction-lines-side-panel\n class=\"higher-max-width\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n </div>\n\n </div>\n <div class=\"activity-list-component-wrapper\">\n <div class=\"activity-task-creator-wrapper\">\n <co-component-activity-list #openActivities [showActivityHeader]=\"showActivityHeader\" [screenConfigurationObject]=\"cfgNames.HeaderActivityList\"\n [table]=\"TableName.Transactions\" [key]=\"transactionInfo.id.toString()\" (refreshRequested)=\"finishedActivitiesRefreshRequested()\">\n </co-component-activity-list>\n <co-task-creator [table]=\"TableName.Transactions\" [remarkAndWorkKey]=\"transactionInfo.id.toString()\" [taskKey]=\"transactionInfo.transactionNr.toString()\"\n [author]=\"transactionService.loggedInUser\" [branchNo]=\"transactionInfo.branch.relationNr.toString()\"\n [workflowCategoryType]=\"WorkflowCategoryType.ServiceOrder\" [screenConfigurationObject]=\"cfgNames.HeaderTaskCreator\"\n (activityCreated)=\"fullActivitiesRefreshRequested()\"></co-task-creator>\n </div>\n <div class=\"activity-list-conv-wrapper\">\n <label class=\"label history-label\" [textContent]=\"'HISTORIC_ACTIVITY_CHAT'| localize\" [screenConfigurationObject]=\"cfgNames.HeaderHistActivities\" screenConfigNativeElement></label>\n <co-activity-list [activities]=\"activities\" [screenConfigurationObject]=\"cfgNames.HeaderHistActivities\"></co-activity-list>\n </div>\n </div>\n </div>\n </div>\n\n ",
54116
+ selector: 'co-transaction-service-overview',
54117
+ template: "\n <div class=\"service-overview-wrapper\">\n <div class=\"message-and-task-wrapper\">\n <div class=\"service-message-and-image-wrapper\">\n <div class=\"service-message-wrapper\">\n <div class=\"service-message\">\n <label class=\"label service-label\" [textContent]=\"'SERVICE_REPORT'| localize\"></label>\n <span *ngIf=\"transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers\"\n [textContent]=\"transactionServiceInfo.wizardQuestionsAndAnswers\"\n [screenConfigurationObject]=\"cfgNames.ServiceWizardMessage\" screenConfigNativeElement\n ></span>\n <co-transaction-service-message class=\"transaction-service-message\" [transaction]=\"transaction\">\n </co-transaction-service-message>\n </div>\n <co-files-upload (documentChangeEvent)=\"upsertDocument($event)\"\n [screenConfigurationObject]=\"cfgNames.ServiceOverviewImage\"\n (documentDeleted)=\"deleteDocument($event)\"\n [label]=\"'ADD_IMAGES' | localize\"\n [documents]=\"documents\"\n [isEditable]=\"false\">\n </co-files-upload>\n </div>\n <div class=\"service-order-lines-wrapper\">\n <div class=\"service-message-extra-wrapper\">\n <co-list-of-values [label]=\"'PRIORITY'| localize\" displayField=\"description\" [model]=\"priorityModel\"\n [collection]=\"priorityDomainColl\" [screenConfigurationObject]=\"cfgNames.ServicePriority\"\n (modelChange)=\"setPriority($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'CAUSE_CODE' | localize\" displayField=\"description\" [model]=\"causeCodeModel\"\n [collection]=\"causeCodeColl\" [screenConfigurationObject]=\"cfgNames.ServiceCauseCode\"\n (modelChange)=\"setCauseCode($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'ENTRY_TYPE' | localize\" displayField=\"description\" [model]=\"entryTypeModel\"\n [collection]=\"entryTypeColl\" [screenConfigurationObject]=\"cfgNames.ServiceEntryType\"\n (modelChange)=\"setEntryType($event)\"></co-list-of-values>\n </div>\n <co-transaction-lines-side-panel\n class=\"higher-max-width\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n </div>\n\n </div>\n <div class=\"activity-list-component-wrapper\">\n <div class=\"activity-task-creator-wrapper\">\n <co-component-activity-list #openActivities [showActivityHeader]=\"showActivityHeader\"\n [screenConfigurationObject]=\"cfgNames.HeaderActivityList\"\n [table]=\"TableName.Transactions\" [key]=\"transactionInfo.id.toString()\"\n (refreshRequested)=\"finishedActivitiesRefreshRequested()\">\n </co-component-activity-list>\n <co-task-creator [table]=\"TableName.Transactions\" [remarkAndWorkKey]=\"transactionInfo.id.toString()\"\n [taskKey]=\"transactionInfo.transactionNr.toString()\"\n [author]=\"transactionService.loggedInUser\" [branchNo]=\"transactionInfo.branch.relationNr.toString()\"\n [workflowCategoryType]=\"WorkflowCategoryType.ServiceOrder\"\n [screenConfigurationObject]=\"cfgNames.HeaderTaskCreator\"\n (activityCreated)=\"fullActivitiesRefreshRequested()\"></co-task-creator>\n </div>\n <div class=\"activity-list-conv-wrapper\">\n <label class=\"label history-label\" [textContent]=\"'HISTORIC_ACTIVITY_CHAT'| localize\"\n [screenConfigurationObject]=\"cfgNames.HeaderHistActivities\" screenConfigNativeElement></label>\n <co-activity-list [activities]=\"activities\"\n [screenConfigurationObject]=\"cfgNames.HeaderHistActivities\"></co-activity-list>\n </div>\n </div>\n </div>\n </div>\n\n ",
53978
54118
  providers: [{
53979
54119
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
53980
54120
  useExisting: i0.forwardRef(function () { return TransactionServiceOverviewComponent; })
@@ -53995,7 +54135,7 @@
53995
54135
  ]; };
53996
54136
  TransactionServiceOverviewComponent.propDecorators = {
53997
54137
  openActivities: [{ type: i0.ViewChild, args: [i10.ComponentActivityListComponent,] }],
53998
- showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-service-overview",] }],
54138
+ showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-service-overview',] }],
53999
54139
  posOrderData: [{ type: i0.Input }]
54000
54140
  };
54001
54141
 
@@ -55424,6 +55564,8 @@
55424
55564
  this.saveCancelMovable = false;
55425
55565
  this.transactionPlanning = false;
55426
55566
  this.cashRegistersDirty = false;
55567
+ //This output exists for bundle purposes.
55568
+ this.serviceRequested = new i0.EventEmitter();
55427
55569
  this.screenConfigLoaded = false;
55428
55570
  this._fetching = false;
55429
55571
  }
@@ -55540,7 +55682,7 @@
55540
55682
  TransactionComponent.decorators = [
55541
55683
  { type: i0.Component, args: [{
55542
55684
  selector: 'co-transaction',
55543
- template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n ></co-transaction-internal>\n ",
55685
+ template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n (serviceRequested)=\"this.serviceRequested.emit($event)\"\n ></co-transaction-internal>\n ",
55544
55686
  providers: [
55545
55687
  { provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
55546
55688
  ],
@@ -55572,6 +55714,7 @@
55572
55714
  saveCancelMovable: [{ type: i0.Input }],
55573
55715
  transactionPlanning: [{ type: i0.Input }],
55574
55716
  cashRegistersDirty: [{ type: i0.Input }],
55717
+ serviceRequested: [{ type: i0.Output }],
55575
55718
  showClass: [{ type: i0.HostBinding, args: ['class.co-transaction',] }],
55576
55719
  checkTransaction: [{ type: i0.HostListener, args: ['window:beforeunload',] }],
55577
55720
  checkRollBack: [{ type: i0.HostListener, args: ['window:unload',] }]
@@ -56277,10 +56420,11 @@
56277
56420
  ];
56278
56421
 
56279
56422
  var TransactionTagsComponent = /** @class */ (function () {
56280
- function TransactionTagsComponent(_transactionService, _transactionEventService, _transactionConnectorService, iconCacheService) {
56423
+ function TransactionTagsComponent(_transactionService, _transactionEventService, _transactionConnectorService, _changeDetector, iconCacheService) {
56281
56424
  this._transactionService = _transactionService;
56282
56425
  this._transactionEventService = _transactionEventService;
56283
56426
  this._transactionConnectorService = _transactionConnectorService;
56427
+ this._changeDetector = _changeDetector;
56284
56428
  this.iconCacheService = iconCacheService;
56285
56429
  this.icons = Icon;
56286
56430
  this.tags = [];
@@ -56319,6 +56463,7 @@
56319
56463
  this._transactionService.getJoinedTags(this._table, this._key).then(function (tags) {
56320
56464
  _this.tags = tags;
56321
56465
  _this.editingTags = __spreadArray([], __read(tags));
56466
+ _this._changeDetector.detectChanges();
56322
56467
  });
56323
56468
  }
56324
56469
  };
@@ -56343,6 +56488,7 @@
56343
56488
  return [4 /*yield*/, this._transactionService.getTagsFullTree(this._getTabCategory(), true)];
56344
56489
  case 1:
56345
56490
  _a.allTags = _b.sent();
56491
+ this._changeDetector.detectChanges();
56346
56492
  _b.label = 2;
56347
56493
  case 2:
56348
56494
  this.showEditTagsDialog = true;
@@ -56361,12 +56507,14 @@
56361
56507
  else {
56362
56508
  tag.image.thumbnailBody = null;
56363
56509
  }
56510
+ _this._changeDetector.detectChanges();
56364
56511
  }
56365
56512
  return tag;
56366
56513
  });
56367
56514
  this._transactionService.mergeJoinedTags(this._table, this._key, tagsToMerge).then(function (success) {
56368
56515
  if (success) {
56369
56516
  _this.tags = _this.editingTags;
56517
+ _this._changeDetector.detectChanges();
56370
56518
  }
56371
56519
  });
56372
56520
  };
@@ -56375,7 +56523,8 @@
56375
56523
  TransactionTagsComponent.decorators = [
56376
56524
  { type: i0.Component, args: [{
56377
56525
  selector: "co-transaction-tags",
56378
- template: "\n <div class=\"transaction-tags-wrapper\">\n <div class=\"edit-tags-wrapper\">\n <co-button [label]=\"'' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.TagLines)\"\n (onClick)=\"handleEditTags()\"\n ></co-button>\n </div>\n <co-transaction-tag *ngFor=\"let tag of tags\" [tag]=\"tag\"></co-transaction-tag>\n <co-simple-tags\n *ngIf=\"showEditTagsDialog\"\n [tags]=\"allTags\"\n [linkedTags]=\"editingTags\"\n (saveClick)=\"handleSaveTags($event)\"\n (closeClick)=\"showEditTagsDialog = false\"\n ></co-simple-tags>\n </div>\n ",
56526
+ template: "\n <div class=\"transaction-tags-wrapper\">\n <div class=\"edit-tags-wrapper\">\n <co-button [label]=\"'' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.TagLines)\"\n (onClick)=\"handleEditTags()\"\n ></co-button>\n </div>\n <co-transaction-tag *ngFor=\"let tag of tags\" [tag]=\"tag\"></co-transaction-tag>\n <co-simple-tags *ngIf=\"showEditTagsDialog\"\n [tags]=\"allTags\"\n [linkedTags]=\"editingTags\"\n (saveClick)=\"handleSaveTags($event)\"\n (closeClick)=\"showEditTagsDialog = false\"\n ></co-simple-tags>\n </div>\n ",
56527
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
56379
56528
  encapsulation: i0.ViewEncapsulation.None
56380
56529
  },] }
56381
56530
  ];
@@ -56383,6 +56532,7 @@
56383
56532
  { type: TransactionService },
56384
56533
  { type: TransactionEventService },
56385
56534
  { type: TransactionConnectorService },
56535
+ { type: i0.ChangeDetectorRef },
56386
56536
  { type: IconCacheService }
56387
56537
  ]; };
56388
56538
  TransactionTagsComponent.propDecorators = {
@@ -56805,6 +56955,8 @@
56805
56955
  this.transactionType = transactionKind_enum.TransactionKind.ServiceOrder;
56806
56956
  this.noLockOnCustomerSet = false;
56807
56957
  this._externallyProvidedTransaction = null;
56958
+ //for bundle puroses where an new, non transaction based, service should always start with the customer already set
56959
+ this._externallyProvidedCustomer = null;
56808
56960
  }
56809
56961
  Object.defineProperty(TransactionCreateWizardComponent.prototype, "externallyProvidedTransaction", {
56810
56962
  set: function (transaction) {
@@ -56820,6 +56972,13 @@
56820
56972
  enumerable: false,
56821
56973
  configurable: true
56822
56974
  });
56975
+ Object.defineProperty(TransactionCreateWizardComponent.prototype, "externallyProvidedCustomer", {
56976
+ set: function (customer) {
56977
+ this._externallyProvidedCustomer = customer;
56978
+ },
56979
+ enumerable: false,
56980
+ configurable: true
56981
+ });
56823
56982
  TransactionCreateWizardComponent.prototype.showClass = function () {
56824
56983
  return true;
56825
56984
  };
@@ -56832,7 +56991,7 @@
56832
56991
  _a.sent();
56833
56992
  this.createService.transactionKind = this.transactionType;
56834
56993
  this.createService.createNewRelation();
56835
- this._processExternalTransactionLine();
56994
+ this._processExternalSettings();
56836
56995
  return [2 /*return*/];
56837
56996
  }
56838
56997
  });
@@ -57006,7 +57165,7 @@
57006
57165
  });
57007
57166
  });
57008
57167
  };
57009
- TransactionCreateWizardComponent.prototype._processExternalTransactionLine = function () {
57168
+ TransactionCreateWizardComponent.prototype._processExternalSettings = function () {
57010
57169
  return __awaiter(this, void 0, void 0, function () {
57011
57170
  var _a, _b;
57012
57171
  var _this = this;
@@ -57037,8 +57196,15 @@
57037
57196
  else {
57038
57197
  this.stepper.openToIndex(3);
57039
57198
  }
57040
- _c.label = 4;
57041
- case 4: return [2 /*return*/];
57199
+ return [3 /*break*/, 5];
57200
+ case 4:
57201
+ if (this._externallyProvidedCustomer) {
57202
+ this.noLockOnCustomerSet = true;
57203
+ this.createService.relation = this._externallyProvidedCustomer;
57204
+ this.stepper.openToIndex(2);
57205
+ }
57206
+ _c.label = 5;
57207
+ case 5: return [2 /*return*/];
57042
57208
  }
57043
57209
  });
57044
57210
  });
@@ -57070,6 +57236,7 @@
57070
57236
  serviceFieldsSection: [{ type: i0.ViewChild, args: ["serviceFieldsSection",] }],
57071
57237
  externallyProvidedTransaction: [{ type: i0.Input }],
57072
57238
  externallyProvidedLineNr: [{ type: i0.Input }],
57239
+ externallyProvidedCustomer: [{ type: i0.Input }],
57073
57240
  transactionFinished: [{ type: i0.Output }],
57074
57241
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-create-wizard",] }]
57075
57242
  };