@colijnit/transaction 258.1.31 → 258.1.32

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 = "258.1.31";
37
- this.publishDate = "12/06/2025, 11:57:33";
36
+ this.symVer = "258.1.32";
37
+ this.publishDate = "12/06/2025, 17:40:01";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -1265,7 +1265,7 @@
1265
1265
  CharacteristicAnswerComponent.decorators = [
1266
1266
  { type: i0.Component, args: [{
1267
1267
  selector: "co-characteristic-answer",
1268
- template: "\n <co-dialog\n [showCloseIcon]=\"false\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-container *ngIf=\"choices && choices.length > 0\">\n <div class=\"co-transaction-default-popup-row\" *ngFor=\"let choice of viewModels\">\n <co-input-checkbox\n [model]=\"choice.checked\"\n [label]=\"choice.value\"\n (modelChange)=\"handleChecked(choice.value)\">\n </co-input-checkbox>\n </div>\n </ng-container>\n <co-input-text\n *ngIf=\"!choices || choices.length === 0\"\n [(model)]=\"value\"\n (keydown)=\"onKeyDown($event)\">\n </co-input-text>\n </co-dialog>\n\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"title\"></div>\n </ng-template>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
1268
+ template: "\n <co-dialog\n [showCloseIcon]=\"false\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-container *ngIf=\"choices && choices.length > 0\">\n <div class=\"co-transaction-default-popup-row\" *ngFor=\"let choice of viewModels\">\n <co-input-checkbox\n [model]=\"choice.checked\"\n [label]=\"choice.value\"\n (modelChange)=\"handleChecked(choice.value)\">\n </co-input-checkbox>\n </div>\n </ng-container>\n <co-input-text\n *ngIf=\"!choices || choices.length === 0\"\n [(model)]=\"value\"\n [initFocus]=\"true\"\n (keydown)=\"onKeyDown($event)\">\n </co-input-text>\n </co-dialog>\n\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"title\"></div>\n </ng-template>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
1269
1269
  encapsulation: i0.ViewEncapsulation.None
1270
1270
  },] }
1271
1271
  ];
@@ -21974,6 +21974,9 @@
21974
21974
  return __generator(this, function (_a) {
21975
21975
  this._connector.getCustomerGroups().then(function (groups) {
21976
21976
  _this.customerGroups = groups;
21977
+ if (_this.model) {
21978
+ _this._setSelectedCustomerGroup();
21979
+ }
21977
21980
  if (!_this._model && _this.defaultValue !== null) {
21978
21981
  _this.handleCustomerGroupChange(_this.customerGroups.find(function (c) { return c.groepsnummer === _this.defaultValue.toString(); }));
21979
21982
  }
@@ -26297,11 +26300,12 @@
26297
26300
  this.purchaseOrderConfirmation.lines = this.transactionLines
26298
26301
  .filter(function (line) { return line.selected; })
26299
26302
  .map(function (line) {
26303
+ var calculatedConfirmedPrice = line.netLineTotal / line.amount;
26300
26304
  var details = new purchaseOrderConfirmationLineDetails.PurchaseOrderConfirmationLineDetails();
26301
26305
  details.lineNumber = line.lineNr;
26302
- details.amountConfirmed = +line.quantityPurchaseToConfirm;
26306
+ details.amountConfirmed = line.quantityPurchaseToConfirm ? +line.quantityPurchaseToConfirm : line.amount;
26303
26307
  details.confirmedDate = line.purchasePortalLine.deliveryDateConfirmed ? new Date(line.purchasePortalLine.deliveryDateConfirmed) : _this.purchaseOrderConfirmation.confirmationDate;
26304
- details.confirmedPrice = +line.purchasePortalLine.confirmedPrice;
26308
+ details.confirmedPrice = typeof line.purchasePortalLine.confirmedPrice === 'number' ? +line.purchasePortalLine.confirmedPrice : calculatedConfirmedPrice;
26305
26309
  details.articleNoSupplier = line.purchasePortalLine.articleNoSupplier;
26306
26310
  return details;
26307
26311
  });
@@ -26908,7 +26912,7 @@
26908
26912
  TransactionSendDocumentsComponent.decorators = [
26909
26913
  { type: i0.Component, args: [{
26910
26914
  selector: "co-transaction-send-documents",
26911
- template: "\n <div class=\"send-documents-wrapper\" *ngIf=\"historicReports?.length > 0\">\n <div class=\"amount-send-indicator\">\n <span [textContent]=\"historicReports.length\"></span>\n </div>\n <div class=\"send-button\" [class.no-pointer]=\"historicReports.length === 0\"\n [class.selected]=\"selected\"\n (click)=\"toggleSendDocumentsDialog()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.FileCircleInfoSolid)\"></co-icon>\n <span [textContent]=\"'SENT' | localize\"></span>\n </div>\n <co-dialog-wizard *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-container header>\n <div class=\"dialog-title\" [textContent]=\"'ALREADY_SENT' | localize\"></div>\n </ng-container>\n <div class=\"dialog-container\">\n <div class=\"historic-report-line\" *ngFor=\"let report of historicReports\" (click)=\"handleShowHistoricDocumentLines(report)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(getSendMethodIcon(report))\"></co-icon>\n <span [textContent]=\"report.reportId + ' ' + (report.reportCreationDate | date)\"></span>\n <div *ngIf=\"layoutCode === layoutCodes.Invoice\" class=\"invoice-number\">\n <span [textContent]=\"'INVOICE_NUMBER' | localize\"></span>\n <span [textContent]=\"': ' + report.reportTransNr\"></span>\n </div>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
26915
+ template: "\n <div class=\"send-documents-wrapper\" *ngIf=\"historicReports?.length > 0\">\n <div class=\"amount-send-indicator\">\n <span [textContent]=\"historicReports.length\"></span>\n </div>\n <div class=\"send-button\" [class.no-pointer]=\"historicReports.length === 0\"\n [class.selected]=\"selected\"\n (click)=\"toggleSendDocumentsDialog()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.FileCircleInfoSolid)\"></co-icon>\n <span [textContent]=\"'SENT' | localize\"></span>\n </div>\n <co-dialog-wizard *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-container header>\n <div class=\"dialog-title\" [textContent]=\"'ALREADY_SENT' | localize\"></div>\n </ng-container>\n <div class=\"dialog-container\">\n <div class=\"historic-report-line\" *ngFor=\"let report of historicReports\" (click)=\"handleShowHistoricDocumentLines(report)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(getSendMethodIcon(report))\"></co-icon>\n <span [textContent]=\"report.reportId + ' ' + (report.reportCreationDate | date:'dd MMM yyyy HH:mm')\"></span>\n <div *ngIf=\"layoutCode === layoutCodes.Invoice\" class=\"invoice-number\">\n <span [textContent]=\"'INVOICE_NUMBER' | localize\"></span>\n <span [textContent]=\"': ' + report.reportTransNr\"></span>\n </div>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
26912
26916
  encapsulation: i0.ViewEncapsulation.None
26913
26917
  },] }
26914
26918
  ];
@@ -53395,8 +53399,11 @@
53395
53399
  };
53396
53400
  TransactionHeaderPopupRelationComponent.prototype.handleChangeCustomGroup = function (group) {
53397
53401
  this.customerGroup = group;
53398
- if (this.relationKind === relationKind_enum.RelationKind.Customer) {
53402
+ if (this.relationKind === relationKind_enum.RelationKind.Customer && this.relation instanceof customerFullObject_bo.CustomerFullObject) {
53399
53403
  this.relation.customerGroup = this.customerGroup;
53404
+ if (this.transactionHeaderService.clonedRelation instanceof customerFullObject_bo.CustomerFullObject) {
53405
+ this.transactionHeaderService.clonedRelation.customerGroup = this.customerGroup;
53406
+ }
53400
53407
  }
53401
53408
  };
53402
53409
  TransactionHeaderPopupRelationComponent.prototype.showCustomerDetails = function () {