@colijnit/transaction 257.1.14 → 257.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "257.1.14";
37
- this.publishDate = "14-2-2025 12:37:53";
36
+ this.symVer = "257.1.15";
37
+ this.publishDate = "17-2-2025 17:47:50";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -11582,12 +11582,8 @@
11582
11582
  };
11583
11583
  TransactionConnectorService.prototype.getTransactionInfo = function (transId, lineNr) {
11584
11584
  return __awaiter(this, void 0, void 0, function () {
11585
- var _this = this;
11586
11585
  return __generator(this, function (_a) {
11587
- return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(transactionInfoHistory_bo.TransactionInfoHistory, function (_a) {
11588
- var _b = __read(_a, 2), transId = _b[0], lineNr = _b[1];
11589
- return _this._adapterService.functionCall(_this._adapterService.getTransactionInfo, [transId, lineNr]);
11590
- }).getValue([transId, lineNr])];
11586
+ return [2 /*return*/, this._adapterService.functionCall(this._adapterService.getTransactionInfo, [transId, lineNr])];
11591
11587
  });
11592
11588
  });
11593
11589
  };
@@ -24589,8 +24585,8 @@
24589
24585
  this.showLoader = false;
24590
24586
  return [3 /*break*/, 8];
24591
24587
  case 8:
24592
- this.detectChanges();
24593
24588
  this.getHistoricDocuments();
24589
+ this.detectChanges();
24594
24590
  _b.label = 9;
24595
24591
  case 9: return [2 /*return*/];
24596
24592
  }
@@ -25017,17 +25013,19 @@
25017
25013
  })];
25018
25014
  case 1:
25019
25015
  _a.sent();
25020
- return [3 /*break*/, 3];
25016
+ return [3 /*break*/, 4];
25021
25017
  case 2:
25022
25018
  pdfOrderConfirmationRequest$1 = Object.assign(new pdfOrderConfirmationRequest.PdfOrderConfirmationRequest(), request);
25023
- this.transactionService.pdfOrderConfirmation(pdfOrderConfirmationRequest$1).then(function (result) {
25024
- if (result instanceof coDocument.CoDocument) {
25025
- _this.signatureDocumentId = result.documentId;
25026
- }
25027
- _this.searchService.searchTransactions();
25028
- });
25029
- _a.label = 3;
25030
- case 3: return [2 /*return*/];
25019
+ return [4 /*yield*/, this.transactionService.pdfOrderConfirmation(pdfOrderConfirmationRequest$1).then(function (result) {
25020
+ if (result instanceof coDocument.CoDocument) {
25021
+ _this.signatureDocumentId = result.documentId;
25022
+ }
25023
+ _this.searchService.searchTransactions();
25024
+ })];
25025
+ case 3:
25026
+ _a.sent();
25027
+ _a.label = 4;
25028
+ case 4: return [2 /*return*/];
25031
25029
  }
25032
25030
  });
25033
25031
  });
@@ -25047,17 +25045,19 @@
25047
25045
  })];
25048
25046
  case 1:
25049
25047
  _a.sent();
25050
- return [3 /*break*/, 3];
25048
+ return [3 /*break*/, 4];
25051
25049
  case 2:
25052
25050
  printOrderConfirmationRequest$1 = Object.assign(new printOrderConfirmationRequest.PrintOrderConfirmationRequest(), request);
25053
- this.transactionService.printOrderConfirmation(printOrderConfirmationRequest$1).then(function (result) {
25054
- if (result instanceof coDocument.CoDocument) {
25055
- _this.signatureDocumentId = result.documentId;
25056
- }
25057
- _this.searchService.searchTransactions();
25058
- });
25059
- _a.label = 3;
25060
- case 3: return [2 /*return*/];
25051
+ return [4 /*yield*/, this.transactionService.printOrderConfirmation(printOrderConfirmationRequest$1).then(function (result) {
25052
+ if (result instanceof coDocument.CoDocument) {
25053
+ _this.signatureDocumentId = result.documentId;
25054
+ }
25055
+ _this.searchService.searchTransactions();
25056
+ })];
25057
+ case 3:
25058
+ _a.sent();
25059
+ _a.label = 4;
25060
+ case 4: return [2 /*return*/];
25061
25061
  }
25062
25062
  });
25063
25063
  });
@@ -26124,22 +26124,17 @@
26124
26124
  this.transactionLine.isArticle &&
26125
26125
  this.transactionLine.commissionCode === '0' &&
26126
26126
  !this.transactionLine.purchaseOrderId &&
26127
- (!this.transactionLine.refTransactions || this.transactionLine.refTransactions.length === 0) &&
26127
+ (!this.transactionLine.refTransactionsPurchase || this.transactionLine.refTransactionsPurchase.length === 0) &&
26128
26128
  this.visible) {
26129
26129
  this.transactionService.getPurchaseOrderForTransactionLine(this.transactionInfo.id, this.transactionLine.lineNr).then(function (history) {
26130
- _this.transactionLine.refTransactions.length = 0;
26130
+ _this.transactionLine.refTransactionsPurchase.length = 0;
26131
26131
  if (history && history.length > 0) {
26132
26132
  history.forEach(function (h) {
26133
- _this.transactionLine.refTransactions.push(new transactionLineInfo_bo.TransactionRefTransaction(h.transId, h.transactionNo.toString(), h.transType, undefined, ''));
26133
+ _this.transactionLine.refTransactionsPurchase.push(new transactionLineInfo_bo.TransactionRefTransaction(h.transId, h.transactionNo.toString(), h.transType, undefined, ''));
26134
26134
  });
26135
26135
  }
26136
- _this.hasPurchaseOrder = _this.transactionLine.refTransactions.filter(function (r) { return r.refTransactionType === transactionKind_enum.TransactionKind.PurchaseOrder; }).length > 0;
26137
- _this.transactionEventService.transactionLineChanged.next(_this.transactionLine);
26138
- _this.transactionEventService.transactionLineRefTransactionsChanged.next(_this.transactionLine);
26136
+ _this.hasPurchaseOrder = _this.transactionLine.refTransactionsPurchase.filter(function (r) { return r.refTransactionType === transactionKind_enum.TransactionKind.PurchaseOrder; }).length > 0;
26139
26137
  _this.detectChanges();
26140
- // this.transactionService.getLinePurchaseInfo(this.transactionInfo.id, this.transactionLine.lineNr).then((history: PurchaseHistory) => {
26141
- // console.log('history', history);
26142
- // });
26143
26138
  });
26144
26139
  }
26145
26140
  };
@@ -26223,7 +26218,7 @@
26223
26218
  TransactionPurchaseLineComponent.decorators = [
26224
26219
  { type: i0.Component, args: [{
26225
26220
  selector: "co-transaction-purchase-line",
26226
- template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine && transactionInfo.transactionDefinitive\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLineSelectedChanged($event)\"\n [isFirst]=\"isFirst\"\n [showPurchaseDescAndPrice]=\"true\">\n <span *ngIf=\"transactionHeaderService.reservationMode && hasReservations\" class=\"button reservation-button\"><co-icon (click)=\"handleReservationModeClick(transactionLine.lineNr)\"\n [iconData]=\"iconCacheService.getIcon(icons.PalletBoxesRotate)\"></co-icon></span>\n <div class=\"transaction-line-wrapper\" [class.transaction-not-definitive]=\"!transactionInfo.transactionDefinitive\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-statusbar\n class=\"status-bar-wrapper\"\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"category.SalesOrderPurchase\">\n </co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n\n <co-transaction-line-supplier-button\n [screenConfigurationObject]=\"cfgNames.LineSupplier\"\n [readonly]=\"hasPurchaseOrder\"\n [inputLabel]=\"true\"></co-transaction-line-supplier-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\" *ngIf=\"transactionLine.commissionCode === '0'\">\n <co-transaction-navigation-button-list\n [screenConfigurationObject]=\"cfgNames.LineRefTransactions\"\n [refTransactions]=\"transactionLine.refTransactions\"\n [emptyLabel]=\"'NO_PURCHASE_ORDER' | localize\"\n [insideLabel]=\"'PURCHASE_ORDER'\"\n (transactionClick)=\"handlePurchaseExistingOrderNavigation($event)\"\n [inputLabel]=\"true\"\n ></co-transaction-navigation-button-list>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-drop-shipment-button\n [screenConfigurationObject]=\"cfgNames.LineDropShipment\"\n [showLabel]=\"true\"\n [inputLabel]=\"true\"\n [class.active]=\"transactionLine.dropShipment\"></co-transaction-line-drop-shipment-button>\n </div>\n </div>\n </div>\n <div class=\"column3\">\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n >\n </co-transaction-line-warehouse-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-button>\n </div>\n </div>\n <co-transaction-line-confirmed-delivery-date-button\n [screenConfigurationObject]=\"cfgNames.LineConfirmedDeliveryDate\"\n ></co-transaction-line-confirmed-delivery-date-button>\n </div>\n <div class=\"column4 less-then-four\">\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [showPurchasePrice]=\"true\"\n [inputLabel]=\"true\"\n ></co-transaction-line-price>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [inputLabel]=\"true\"\n ></co-transaction-line-discount-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [inputLabel]=\"true\"\n ></co-transaction-line-amount>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [readonly]=\"true\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
26221
+ template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine && transactionInfo.transactionDefinitive\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLineSelectedChanged($event)\"\n [isFirst]=\"isFirst\"\n [showPurchaseDescAndPrice]=\"true\">\n <span *ngIf=\"transactionHeaderService.reservationMode && hasReservations\" class=\"button reservation-button\"><co-icon (click)=\"handleReservationModeClick(transactionLine.lineNr)\"\n [iconData]=\"iconCacheService.getIcon(icons.PalletBoxesRotate)\"></co-icon></span>\n <div class=\"transaction-line-wrapper\" [class.transaction-not-definitive]=\"!transactionInfo.transactionDefinitive\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-statusbar\n class=\"status-bar-wrapper\"\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"category.SalesOrderPurchase\">\n </co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n\n <co-transaction-line-supplier-button\n [screenConfigurationObject]=\"cfgNames.LineSupplier\"\n [readonly]=\"hasPurchaseOrder\"\n [inputLabel]=\"true\"></co-transaction-line-supplier-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\" *ngIf=\"transactionLine.commissionCode === '0'\">\n <co-transaction-navigation-button-list\n [screenConfigurationObject]=\"cfgNames.LineRefTransactions\"\n [refTransactions]=\"transactionLine.refTransactionsPurchase\"\n [emptyLabel]=\"'NO_PURCHASE_ORDER' | localize\"\n [insideLabel]=\"'PURCHASE_ORDER'\"\n (transactionClick)=\"handlePurchaseExistingOrderNavigation($event)\"\n [inputLabel]=\"true\"\n ></co-transaction-navigation-button-list>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-drop-shipment-button\n [screenConfigurationObject]=\"cfgNames.LineDropShipment\"\n [showLabel]=\"true\"\n [inputLabel]=\"true\"\n [class.active]=\"transactionLine.dropShipment\"></co-transaction-line-drop-shipment-button>\n </div>\n </div>\n </div>\n <div class=\"column3\">\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n >\n </co-transaction-line-warehouse-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-button>\n </div>\n </div>\n <co-transaction-line-confirmed-delivery-date-button\n [screenConfigurationObject]=\"cfgNames.LineConfirmedDeliveryDate\"\n ></co-transaction-line-confirmed-delivery-date-button>\n </div>\n <div class=\"column4 less-then-four\">\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [showPurchasePrice]=\"true\"\n [inputLabel]=\"true\"\n ></co-transaction-line-price>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [inputLabel]=\"true\"\n ></co-transaction-line-discount-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [inputLabel]=\"true\"\n ></co-transaction-line-amount>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [readonly]=\"true\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
26227
26222
  encapsulation: i0.ViewEncapsulation.None,
26228
26223
  changeDetection: i0.ChangeDetectionStrategy.OnPush
26229
26224
  },] }