@colijnit/transaction 258.1.31 → 258.1.33

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 (20) hide show
  1. package/bundles/colijnit-transaction.umd.js +58 -18
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/core/base/components/characteristic-answer/characteristic-answer.component.js +2 -1
  5. package/esm2015/lib/component/core/relation/customer-groups.component.js +4 -1
  6. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-relation.component.js +6 -2
  7. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line-base.component.js +5 -1
  8. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line.component.js +5 -1
  9. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line.module.js +4 -2
  10. package/esm2015/lib/component/transaction-line/transaction-purchase-overview-line/transaction-purchase-overview-line.component.js +5 -2
  11. package/esm2015/lib/component/transaction-navigation-button-list/transaction-navigation-button-list.component.js +23 -3
  12. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +4 -3
  13. package/esm2015/lib/component/transaction-send-documents/transaction-send-documents.component.js +2 -2
  14. package/esm2015/lib/service/transaction-base.service.js +5 -1
  15. package/esm2015/lib/transaction-version.js +3 -3
  16. package/fesm2015/colijnit-transaction.js +53 -10
  17. package/fesm2015/colijnit-transaction.js.map +1 -1
  18. package/lib/component/transaction-line/transaction-purchase-overview-line/transaction-purchase-overview-line.component.d.ts +2 -0
  19. package/lib/component/transaction-navigation-button-list/transaction-navigation-button-list.component.d.ts +1 -0
  20. package/package.json +2 -2
@@ -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.33";
37
+ this.publishDate = "17-6-2025 18:18:30";
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
  ];
@@ -15756,19 +15756,20 @@
15756
15756
  }
15757
15757
  articleTransLines_1 = this.currentTransaction.transactionLines.filter(function (t) { return t.isArticle; });
15758
15758
  this.getRefTransactions(transId).then(function (refs) { return __awaiter(_this, void 0, void 0, function () {
15759
- var i, refTransactions, refServiceTransactions, transLine, salesOrders, serviceOrders;
15759
+ var i, refTransactions, refServiceTransactions, refInvoiceTransactions, transLine, salesOrders, serviceOrders, invoices;
15760
15760
  return __generator(this, function (_a) {
15761
15761
  switch (_a.label) {
15762
15762
  case 0:
15763
15763
  i = 0;
15764
15764
  _a.label = 1;
15765
15765
  case 1:
15766
- if (!(i < articleTransLines_1.length)) return [3 /*break*/, 6];
15766
+ if (!(i < articleTransLines_1.length)) return [3 /*break*/, 7];
15767
15767
  refTransactions = [];
15768
15768
  refServiceTransactions = [];
15769
+ refInvoiceTransactions = [];
15769
15770
  transLine = articleTransLines_1[i];
15770
15771
  transLine.refTransactions.length = 0;
15771
- if (!(refs && refs.length > 0)) return [3 /*break*/, 4];
15772
+ if (!(refs && refs.length > 0)) return [3 /*break*/, 5];
15772
15773
  salesOrders = refs.filter(function (r) { return r.refTransactionType === transactionKind_enum.TransactionKind.SalesOrder; });
15773
15774
  return [4 /*yield*/, this.makeRefTransactionList(salesOrders)];
15774
15775
  case 2:
@@ -15777,16 +15778,21 @@
15777
15778
  return [4 /*yield*/, this.makeRefTransactionList(serviceOrders, transLine.lineNr)];
15778
15779
  case 3:
15779
15780
  refServiceTransactions = _a.sent();
15780
- _a.label = 4;
15781
+ invoices = refs.filter(function (r) { return r.refTransactionType === transactionKind_enum.TransactionKind.SalesInvoice; });
15782
+ return [4 /*yield*/, this.makeRefTransactionList(invoices, transLine.lineNr)];
15781
15783
  case 4:
15784
+ refInvoiceTransactions = _a.sent();
15785
+ _a.label = 5;
15786
+ case 5:
15782
15787
  transLine.refTransactions = refTransactions;
15783
15788
  transLine.refServiceTransactions = refServiceTransactions;
15789
+ transLine.refTransactionsInvoice = refInvoiceTransactions;
15784
15790
  this.transactionEventService.transactionLineRefTransactionsChanged.next(transLine);
15785
- _a.label = 5;
15786
- case 5:
15791
+ _a.label = 6;
15792
+ case 6:
15787
15793
  i++;
15788
15794
  return [3 /*break*/, 1];
15789
- case 6: return [2 /*return*/];
15795
+ case 7: return [2 /*return*/];
15790
15796
  }
15791
15797
  });
15792
15798
  }); });
@@ -21974,6 +21980,9 @@
21974
21980
  return __generator(this, function (_a) {
21975
21981
  this._connector.getCustomerGroups().then(function (groups) {
21976
21982
  _this.customerGroups = groups;
21983
+ if (_this.model) {
21984
+ _this._setSelectedCustomerGroup();
21985
+ }
21977
21986
  if (!_this._model && _this.defaultValue !== null) {
21978
21987
  _this.handleCustomerGroupChange(_this.customerGroups.find(function (c) { return c.groepsnummer === _this.defaultValue.toString(); }));
21979
21988
  }
@@ -26297,11 +26306,12 @@
26297
26306
  this.purchaseOrderConfirmation.lines = this.transactionLines
26298
26307
  .filter(function (line) { return line.selected; })
26299
26308
  .map(function (line) {
26309
+ var calculatedConfirmedPrice = line.netLineTotal / line.amount;
26300
26310
  var details = new purchaseOrderConfirmationLineDetails.PurchaseOrderConfirmationLineDetails();
26301
26311
  details.lineNumber = line.lineNr;
26302
- details.amountConfirmed = +line.quantityPurchaseToConfirm;
26312
+ details.amountConfirmed = line.quantityPurchaseToConfirm ? +line.quantityPurchaseToConfirm : line.amount;
26303
26313
  details.confirmedDate = line.purchasePortalLine.deliveryDateConfirmed ? new Date(line.purchasePortalLine.deliveryDateConfirmed) : _this.purchaseOrderConfirmation.confirmationDate;
26304
- details.confirmedPrice = +line.purchasePortalLine.confirmedPrice;
26314
+ details.confirmedPrice = typeof line.purchasePortalLine.confirmedPrice === 'number' ? +line.purchasePortalLine.confirmedPrice : calculatedConfirmedPrice;
26305
26315
  details.articleNoSupplier = line.purchasePortalLine.articleNoSupplier;
26306
26316
  return details;
26307
26317
  });
@@ -26908,7 +26918,7 @@
26908
26918
  TransactionSendDocumentsComponent.decorators = [
26909
26919
  { type: i0.Component, args: [{
26910
26920
  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 ",
26921
+ 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
26922
  encapsulation: i0.ViewEncapsulation.None
26913
26923
  },] }
26914
26924
  ];
@@ -29239,6 +29249,7 @@
29239
29249
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
29240
29250
  _this.category = TransactionTypeCategory;
29241
29251
  _this.showCheckboxForLine = false;
29252
+ _this.refTransList = [];
29242
29253
  _this.statusBarConfigNames = {
29243
29254
  statusBarIB: _this.cfgNames.StatusBarIB,
29244
29255
  statusBarNT: _this.cfgNames.StatusBarNT,
@@ -29263,9 +29274,11 @@
29263
29274
  _this.detectChanges();
29264
29275
  }), this.transactionEventService.transactionLineChanged.subscribe(function (line) {
29265
29276
  if (_this.transactionLine && _this.transactionLine.lineNr === line.lineNr) {
29277
+ _this.refTransList = _this.transactionLine.refTransactions.concat(_this.transactionLine.refServiceTransactions);
29266
29278
  _this.detectChanges();
29267
29279
  }
29268
29280
  }), this.transactionEventService.transactionLineRefTransactionsChanged.subscribe(function (line) {
29281
+ _this.refTransList = _this.transactionLine.refTransactions.concat(_this.transactionLine.refServiceTransactions);
29269
29282
  _this.changeDetector.detectChanges();
29270
29283
  }));
29271
29284
  };
@@ -29289,7 +29302,7 @@
29289
29302
  TransactionPurchaseOverviewLineComponent.decorators = [
29290
29303
  { type: i0.Component, args: [{
29291
29304
  selector: "co-transaction-purchase-overview-line",
29292
- template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n (checkboxValueChanged)=\"selected = $event\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"category.PurchaseOrderOverview\">\n </co-transaction-line-statusbar>\n <co-transaction-navigation-button-list\n class=\"transaction-field-wrapper multi-list\"\n [refTransactions]=\"transactionLine.refTransactions\"\n (relationClick)=\"handleRelationNavigation($event)\"\n (transactionClick)=\"handleTransactionNavigation($event)\">\n </co-transaction-navigation-button-list>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button\n class=\"transaction-field-wrapper medium two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-date-button>\n <co-transaction-line-vat-button\n class=\"transaction-field-wrapper small\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [inputLabel]=\"true\"\n ></co-transaction-line-vat-button>\n <co-transaction-line-price\n class=\"transaction-field-wrapper small transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button\n class=\"transaction-field-wrapper small\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [inputLabel]=\"true\"\n ></co-transaction-line-discount-button>\n <co-transaction-line-amount\n class=\"transaction-field-wrapper small amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [inputLabel]=\"true\">\n </co-transaction-line-amount>\n <co-editable-label\n class=\"transaction-field-wrapper small 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 [inputLabel]=\"true\"\n ></co-editable-label>\n\n <div class=\"transaction-field-wrapper small\" *ngIf=\"lineMarginInfo\">\n <div class=\"inside-field\">\n <co-transaction-button [statusColor]=\"true\"\n class=\"no-gap\"\n [insideLabel]=\"'GROSS_PROFIT_PERCENT'\"\n [inputLabel]=\"true\"\n [iconData]=\"iconCacheService.getIcon(icons.ChartPieSimpleRegular)\"\n [title]=\"lineMarginInfo?.grossProfitPercentage / 100 | percent : '1.2-2'\">\n </co-transaction-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper small\" *ngIf=\"lineMarginInfo\">\n <div class=\"inside-field\">\n <co-transaction-button [statusColor]=\"true\"\n class=\"no-gap\"\n [insideLabel]=\"'GROSS_PROFIT_TOTAL'\"\n [inputLabel]=\"true\"\n [iconData]=\"iconCacheService.getIcon(icons.ChartPieSimpleRegular)\"\n [title]=\"lineMarginInfo?.grossProfit | coCurrency: true\">\n </co-transaction-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper small\" *ngIf=\"lineMarginInfo\">\n <div class=\"inside-field\">\n <co-transaction-button [statusColor]=\"true\"\n class=\"no-gap\"\n [inputLabel]=\"true\"\n [insideLabel]=\"'CALCULATION_FACTOR'\"\n [iconData]=\"iconCacheService.getIcon(icons.ChartPieSimpleRegular)\"\n [title]=\"lineMarginInfo?.calculationFactor | number\">\n </co-transaction-button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
29305
+ template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n (checkboxValueChanged)=\"selected = $event\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"category.PurchaseOrderOverview\">\n </co-transaction-line-statusbar>\n <co-transaction-navigation-button-list\n class=\"transaction-field-wrapper multi-list\"\n [refTransactions]=\"refTransList\"\n (relationClick)=\"handleRelationNavigation($event)\"\n (transactionClick)=\"handleTransactionNavigation($event)\">\n </co-transaction-navigation-button-list>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button\n class=\"transaction-field-wrapper medium two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-date-button>\n <co-transaction-line-vat-button\n class=\"transaction-field-wrapper small\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [inputLabel]=\"true\"\n ></co-transaction-line-vat-button>\n <co-transaction-line-price\n class=\"transaction-field-wrapper small transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button\n class=\"transaction-field-wrapper small\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [inputLabel]=\"true\"\n ></co-transaction-line-discount-button>\n <co-transaction-line-amount\n class=\"transaction-field-wrapper small amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [inputLabel]=\"true\">\n </co-transaction-line-amount>\n <co-editable-label\n class=\"transaction-field-wrapper small 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 [inputLabel]=\"true\"\n ></co-editable-label>\n\n <div class=\"transaction-field-wrapper small\" *ngIf=\"lineMarginInfo\">\n <div class=\"inside-field\">\n <co-transaction-button [statusColor]=\"true\"\n class=\"no-gap\"\n [insideLabel]=\"'GROSS_PROFIT_PERCENT'\"\n [inputLabel]=\"true\"\n [iconData]=\"iconCacheService.getIcon(icons.ChartPieSimpleRegular)\"\n [title]=\"lineMarginInfo?.grossProfitPercentage / 100 | percent : '1.2-2'\">\n </co-transaction-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper small\" *ngIf=\"lineMarginInfo\">\n <div class=\"inside-field\">\n <co-transaction-button [statusColor]=\"true\"\n class=\"no-gap\"\n [insideLabel]=\"'GROSS_PROFIT_TOTAL'\"\n [inputLabel]=\"true\"\n [iconData]=\"iconCacheService.getIcon(icons.ChartPieSimpleRegular)\"\n [title]=\"lineMarginInfo?.grossProfit | coCurrency: true\">\n </co-transaction-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper small\" *ngIf=\"lineMarginInfo\">\n <div class=\"inside-field\">\n <co-transaction-button [statusColor]=\"true\"\n class=\"no-gap\"\n [inputLabel]=\"true\"\n [insideLabel]=\"'CALCULATION_FACTOR'\"\n [iconData]=\"iconCacheService.getIcon(icons.ChartPieSimpleRegular)\"\n [title]=\"lineMarginInfo?.calculationFactor | number\">\n </co-transaction-button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
29293
29306
  encapsulation: i0.ViewEncapsulation.None,
29294
29307
  changeDetection: i0.ChangeDetectionStrategy.OnPush
29295
29308
  },] }
@@ -29677,6 +29690,10 @@
29677
29690
  _this.transactionEventService.lineSelectedForInvoice.next({ lineUuid: _this.transactionLine.uuid, selected: _this.transactionLine.selected });
29678
29691
  }
29679
29692
  _this.detectChanges();
29693
+ }), this.transactionEventService.transactionLineRefTransactionsChanged.subscribe(function (line) {
29694
+ if (_this.transactionLine && line && line.lineNr === _this.transactionLine.lineNr) {
29695
+ _this.detectChanges();
29696
+ }
29680
29697
  }));
29681
29698
  this._initialized = true;
29682
29699
  this._checkCheckbox();
@@ -29801,7 +29818,7 @@
29801
29818
  TransactionInvoiceLineComponent.decorators = [
29802
29819
  { type: i0.Component, args: [{
29803
29820
  selector: "co-transaction-invoice-line",
29804
- template: "\n <co-transaction-base-line\n [lineIndex]=\"lineIndex\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckbox && transactionInfo.transactionDefinitive\"\n [checkboxValue]=\"transactionLine.selected\"\n [checkboxReadonly]=\"checkboxReadonly\"\n (checkboxValueChanged)=\"handleSelectCheckboxClick($event)\"\n >\n <div class=\"transaction-line-wrapper\" [class.transaction-not-definitive]=\"!transactionInfo.transactionDefinitive\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n class=\"status-bar-wrapper\"\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"category.SalesOrderInvoice\">\n </co-transaction-line-statusbar>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n [readonly]=\"readonly\">\n </co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-price\n class=\"transaction-field-wrapper small transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button\n *ngIf=\"!preview\"\n class=\"transaction-field-wrapper small\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [inputLabel]=\"true\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-field-wrapper small\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-number-picker\n class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToInvoice\"\n [(model)]=\"localAmountSelected\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLineService?.lineQuantityToInvoice\"\n [forceReadonly]=\"(!transactionLine.selected) || transactionLineService?.lineQuantityToInvoice === 0 || readonly || !transactionInfo.allowPartialDelivery\"\n (modelChange)=\"updateSelectedQuantity(localAmountSelected)\">\n </co-input-number-picker>\n </div>\n </div>\n <co-editable-label\n class=\"transaction-field-wrapper small 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 </co-transaction-base-line>\n ",
29821
+ template: "\n <co-transaction-base-line\n [lineIndex]=\"lineIndex\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckbox && transactionInfo.transactionDefinitive\"\n [checkboxValue]=\"transactionLine.selected\"\n [checkboxReadonly]=\"checkboxReadonly\"\n (checkboxValueChanged)=\"handleSelectCheckboxClick($event)\"\n >\n <div class=\"transaction-line-wrapper\" [class.transaction-not-definitive]=\"!transactionInfo.transactionDefinitive\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-navigation-button-list [navigationButtonIcon]=\"null\"\n class=\"transaction-field-wrapper multi-list\" [showRelationButton]=\"false\"\n [refTransactions]=\"transactionLine.refTransactionsInvoice\">\n </co-transaction-navigation-button-list>\n <co-transaction-line-statusbar\n class=\"status-bar-wrapper\"\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"category.SalesOrderInvoice\">\n </co-transaction-line-statusbar>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n [readonly]=\"readonly\">\n </co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [inputLabel]=\"true\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-price\n class=\"transaction-field-wrapper small transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button\n *ngIf=\"!preview\"\n class=\"transaction-field-wrapper small\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [inputLabel]=\"true\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-field-wrapper small\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-number-picker\n class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToInvoice\"\n [(model)]=\"localAmountSelected\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLineService?.lineQuantityToInvoice\"\n [forceReadonly]=\"(!transactionLine.selected) || transactionLineService?.lineQuantityToInvoice === 0 || readonly || !transactionInfo.allowPartialDelivery\"\n (modelChange)=\"updateSelectedQuantity(localAmountSelected)\">\n </co-input-number-picker>\n </div>\n </div>\n <co-editable-label\n class=\"transaction-field-wrapper small 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 </co-transaction-base-line>\n ",
29805
29822
  encapsulation: i0.ViewEncapsulation.None,
29806
29823
  changeDetection: i0.ChangeDetectionStrategy.OnPush
29807
29824
  },] }
@@ -37031,12 +37048,31 @@
37031
37048
  this.showExtended = false;
37032
37049
  this.transactionClick.emit(transNr);
37033
37050
  };
37051
+ TransactionNavigationButtonListComponent.prototype.orderInsideLabelFunction = function (ref) {
37052
+ switch (ref.refTransactionType) {
37053
+ case transactionKind_enum.TransactionKind.SalesOrder:
37054
+ return 'SALES_ORDER';
37055
+ break;
37056
+ case transactionKind_enum.TransactionKind.PurchaseOrder:
37057
+ return 'PURCHASE_ORDER';
37058
+ break;
37059
+ case transactionKind_enum.TransactionKind.ServiceOrder:
37060
+ return 'SERVICE_ORDER';
37061
+ break;
37062
+ case transactionKind_enum.TransactionKind.SalesInvoice:
37063
+ return 'INVOICE';
37064
+ break;
37065
+ default:
37066
+ return this.insideLabel;
37067
+ break;
37068
+ }
37069
+ };
37034
37070
  return TransactionNavigationButtonListComponent;
37035
37071
  }());
37036
37072
  TransactionNavigationButtonListComponent.decorators = [
37037
37073
  { type: i0.Component, args: [{
37038
37074
  selector: "co-transaction-navigation-button-list",
37039
- template: "\n <ng-container *ngIf=\"refTransactions.length === 0 && emptyLabel\">\n <div class=\"inside-field\">\n <co-transaction-navigation-button\n class=\"disabled-button\"\n [icon]=\"navigationButtonIcon\"\n [label]=\"emptyLabel\"\n ></co-transaction-navigation-button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"refTransactions.length > 1\">\n <div class=\"inside-field\">\n <co-transaction-line-label *ngIf=\"inputLabel\" [class.red-label]=\"redService\"\n [insideLabel]=\"insideLabel\"></co-transaction-line-label>\n <co-transaction-navigation-button [label]=\"'MULTI_SELECT' | localize\" [icon]=\"navigationButtonIcon\" (click)=\"showExtended = !showExtended\" overlayParent #parentForOverlay=\"overlayParent\"></co-transaction-navigation-button>\n </div>\n <div class=\"navigation-button-list-extended-wrapper\" *ngIf=\"showExtended\" [overlay]=\"parentForOverlay\" clickOutside (clickOutside)=\"showExtended = false\">\n <ng-container *ngFor=\"let refTransaction of refTransactions\">\n <ng-container *ngTemplateOutlet=\"refTransactionTemplate; context: { $implicit: refTransaction }\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"refTransactions.length === 1\">\n <ng-container *ngTemplateOutlet=\"refTransactionTemplate; context: { $implicit: refTransactions[0] }\"></ng-container>\n </ng-container>\n <ng-template #refTransactionTemplate let-ref>\n <div class=\"navigation-button-list-extended-item\">\n <div class=\"transaction-field-wrapper\" *ngIf=\"ref.refRelationName && showRelationButton\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'RELATION'\"></co-transaction-line-label>\n <co-transaction-navigation-button class=\"navigation-relation-button\"\n [icon]=\"navigationButtonIcon\"\n [label]=\"ref.refRelationName\"\n (buttonClicked)=\"handleRelationClick($event, ref.refRelationId)\"></co-transaction-navigation-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\" *ngIf=\"ref.refTransactionNr\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"insideLabel\"></co-transaction-line-label>\n <co-transaction-navigation-button [icon]=\"navigationButtonIcon\"\n [label]=\"ref.refTransactionNr\"\n (iconClicked)=\"iconClick.emit($event)\"\n (buttonClicked)=\"handleTransactionClick($event, ref.refTransactionNr)\"></co-transaction-navigation-button>\n </div>\n </div>\n </div>\n </ng-template>\n\n ",
37075
+ template: "\n <ng-container *ngIf=\"refTransactions.length === 0 && emptyLabel\">\n <div class=\"inside-field\">\n <co-transaction-navigation-button\n class=\"disabled-button\"\n [icon]=\"navigationButtonIcon\"\n [label]=\"emptyLabel\"\n ></co-transaction-navigation-button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"refTransactions.length > 1\">\n <div class=\"inside-field\">\n <co-transaction-line-label *ngIf=\"inputLabel\" [class.red-label]=\"redService\"\n [insideLabel]=\"insideLabel\"></co-transaction-line-label>\n <co-transaction-navigation-button [label]=\"'MULTI_SELECT' | localize\" [icon]=\"navigationButtonIcon\" (click)=\"showExtended = !showExtended\" overlayParent #parentForOverlay=\"overlayParent\"></co-transaction-navigation-button>\n </div>\n <div class=\"navigation-button-list-extended-wrapper\" *ngIf=\"showExtended\" [overlay]=\"parentForOverlay\" clickOutside (clickOutside)=\"showExtended = false\">\n <ng-container *ngFor=\"let refTransaction of refTransactions\">\n <ng-container *ngTemplateOutlet=\"refTransactionTemplate; context: { $implicit: refTransaction }\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"refTransactions.length === 1\">\n <ng-container *ngTemplateOutlet=\"refTransactionTemplate; context: { $implicit: refTransactions[0] }\"></ng-container>\n </ng-container>\n <ng-template #refTransactionTemplate let-ref>\n <div class=\"navigation-button-list-extended-item\">\n <div class=\"transaction-field-wrapper\" *ngIf=\"ref.refRelationName && showRelationButton\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'RELATION'\"></co-transaction-line-label>\n <co-transaction-navigation-button class=\"navigation-relation-button\"\n [icon]=\"navigationButtonIcon\"\n [label]=\"ref.refRelationName\"\n (buttonClicked)=\"handleRelationClick($event, ref.refRelationId)\"></co-transaction-navigation-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\" *ngIf=\"ref.refTransactionNr\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"orderInsideLabelFunction(ref)\"></co-transaction-line-label>\n <co-transaction-navigation-button [icon]=\"navigationButtonIcon\"\n [label]=\"ref.refTransactionNr\"\n (iconClicked)=\"iconClick.emit($event)\"\n (buttonClicked)=\"handleTransactionClick($event, ref.refTransactionNr)\"></co-transaction-navigation-button>\n </div>\n </div>\n </div>\n </ng-template>\n\n ",
37040
37076
  animations: [
37041
37077
  animations.trigger("showHideExtended", [
37042
37078
  animations.state("void", animations.style({ height: 0 })),
@@ -38688,7 +38724,8 @@
38688
38724
  TransactionLinePriceModule,
38689
38725
  TransactionLineDiscountButtonModule,
38690
38726
  TransactionLineAmountModule,
38691
- TransactionLineLabelModule
38727
+ TransactionLineLabelModule,
38728
+ TransactionNavigationButtonListModule
38692
38729
  ],
38693
38730
  declarations: [
38694
38731
  TransactionInvoiceLineComponent
@@ -53395,8 +53432,11 @@
53395
53432
  };
53396
53433
  TransactionHeaderPopupRelationComponent.prototype.handleChangeCustomGroup = function (group) {
53397
53434
  this.customerGroup = group;
53398
- if (this.relationKind === relationKind_enum.RelationKind.Customer) {
53435
+ if (this.relationKind === relationKind_enum.RelationKind.Customer && this.relation instanceof customerFullObject_bo.CustomerFullObject) {
53399
53436
  this.relation.customerGroup = this.customerGroup;
53437
+ if (this.transactionHeaderService.clonedRelation instanceof customerFullObject_bo.CustomerFullObject) {
53438
+ this.transactionHeaderService.clonedRelation.customerGroup = this.customerGroup;
53439
+ }
53400
53440
  }
53401
53441
  };
53402
53442
  TransactionHeaderPopupRelationComponent.prototype.showCustomerDetails = function () {