@colijnit/transaction 257.1.43 → 257.1.45

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 (37) hide show
  1. package/bundles/colijnit-transaction.umd.js +249 -19
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/transaction-card/transaction-card/transaction-card.component.js +32 -4
  5. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +5 -1
  6. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +9 -9
  7. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +1 -2
  8. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +3 -1
  9. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-picked/transaction-quick-access-picked.component.js +6 -3
  10. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +29 -44
  11. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-to-be-picked/transaction-quick-access-to-be-picked.component.js +3 -2
  12. package/esm2015/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.component.js +69 -0
  13. package/esm2015/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.module.js +29 -0
  14. package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +32 -5
  15. package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +8 -6
  16. package/esm2015/lib/component/transaction-search/transaction-search.module.js +3 -1
  17. package/esm2015/lib/service/transaction-connector-adapter.service.js +37 -1
  18. package/esm2015/lib/service/transaction-connector.service.js +16 -1
  19. package/esm2015/lib/service/transaction.service.js +16 -1
  20. package/esm2015/lib/transaction-version.js +3 -3
  21. package/esm2015/public_api.js +3 -1
  22. package/fesm2015/colijnit-transaction.js +265 -65
  23. package/fesm2015/colijnit-transaction.js.map +1 -1
  24. package/lib/component/transaction-card/transaction-card/transaction-card.component.d.ts +8 -1
  25. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +0 -2
  26. package/lib/component/transaction-search/transaction-date-pick-dialog/style/_layout.scss +16 -0
  27. package/lib/component/transaction-search/transaction-date-pick-dialog/style/_material-definition.scss +1 -0
  28. package/lib/component/transaction-search/transaction-date-pick-dialog/style/_theme.scss +6 -0
  29. package/lib/component/transaction-search/transaction-date-pick-dialog/style/material.scss +3 -0
  30. package/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.component.d.ts +15 -0
  31. package/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.module.d.ts +2 -0
  32. package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +2 -1
  33. package/lib/service/transaction-connector-adapter.service.d.ts +3 -0
  34. package/lib/service/transaction-connector.service.d.ts +3 -0
  35. package/lib/service/transaction.service.d.ts +3 -0
  36. package/package.json +3 -3
  37. package/public_api.d.ts +2 -0
@@ -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.43";
37
- this.publishDate = "4-4-2025 17:32:14";
36
+ this.symVer = "257.1.45";
37
+ this.publishDate = "08/04/2025, 09:43:20";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -6843,6 +6843,66 @@
6843
6843
  });
6844
6844
  });
6845
6845
  };
6846
+ TransactionConnectorAdapterService.prototype.startToAllocateUnAllocatedLinesBatch = function (transIds) {
6847
+ return __awaiter(this, void 0, void 0, function () {
6848
+ var response;
6849
+ return __generator(this, function (_a) {
6850
+ switch (_a.label) {
6851
+ case 0: return [4 /*yield*/, this.connector.startToAllocateUnAllocatedLinesBatch(transIds)];
6852
+ case 1:
6853
+ response = _a.sent();
6854
+ if (response && response.validationResult && response.validationResult.success) {
6855
+ return [2 /*return*/, response.resultObject];
6856
+ }
6857
+ else {
6858
+ this._handleExceptionFromResponse(response);
6859
+ return [2 /*return*/, null];
6860
+ }
6861
+ return [2 /*return*/];
6862
+ }
6863
+ });
6864
+ });
6865
+ };
6866
+ TransactionConnectorAdapterService.prototype.startGoodsToBePickedBatch = function (transIds) {
6867
+ return __awaiter(this, void 0, void 0, function () {
6868
+ var response;
6869
+ return __generator(this, function (_a) {
6870
+ switch (_a.label) {
6871
+ case 0: return [4 /*yield*/, this.connector.startGoodsToBePickedBatch(transIds)];
6872
+ case 1:
6873
+ response = _a.sent();
6874
+ if (response && response.validationResult && response.validationResult.success) {
6875
+ return [2 /*return*/, response.resultObject];
6876
+ }
6877
+ else {
6878
+ this._handleExceptionFromResponse(response);
6879
+ return [2 /*return*/, null];
6880
+ }
6881
+ return [2 /*return*/];
6882
+ }
6883
+ });
6884
+ });
6885
+ };
6886
+ TransactionConnectorAdapterService.prototype.startGoodsPickedBatch = function (transIds) {
6887
+ return __awaiter(this, void 0, void 0, function () {
6888
+ var response;
6889
+ return __generator(this, function (_a) {
6890
+ switch (_a.label) {
6891
+ case 0: return [4 /*yield*/, this.connector.startGoodsPickedBatch(transIds)];
6892
+ case 1:
6893
+ response = _a.sent();
6894
+ if (response && response.validationResult && response.validationResult.success) {
6895
+ return [2 /*return*/, response.resultObject];
6896
+ }
6897
+ else {
6898
+ this._handleExceptionFromResponse(response);
6899
+ return [2 /*return*/, null];
6900
+ }
6901
+ return [2 /*return*/];
6902
+ }
6903
+ });
6904
+ });
6905
+ };
6846
6906
  TransactionConnectorAdapterService.prototype.startDeliveryNotesBatch = function (request) {
6847
6907
  return __awaiter(this, void 0, void 0, function () {
6848
6908
  var response;
@@ -11332,6 +11392,27 @@
11332
11392
  });
11333
11393
  });
11334
11394
  };
11395
+ TransactionConnectorService.prototype.startToAllocateUnAllocatedLinesBatch = function (transIds) {
11396
+ return __awaiter(this, void 0, void 0, function () {
11397
+ return __generator(this, function (_a) {
11398
+ return [2 /*return*/, this._adapterService.functionCall(this._adapterService.startToAllocateUnAllocatedLinesBatch, [transIds])];
11399
+ });
11400
+ });
11401
+ };
11402
+ TransactionConnectorService.prototype.startGoodsToBePickedBatch = function (transIds) {
11403
+ return __awaiter(this, void 0, void 0, function () {
11404
+ return __generator(this, function (_a) {
11405
+ return [2 /*return*/, this._adapterService.functionCall(this._adapterService.startGoodsToBePickedBatch, [transIds])];
11406
+ });
11407
+ });
11408
+ };
11409
+ TransactionConnectorService.prototype.startGoodsPickedBatch = function (transIds) {
11410
+ return __awaiter(this, void 0, void 0, function () {
11411
+ return __generator(this, function (_a) {
11412
+ return [2 /*return*/, this._adapterService.functionCall(this._adapterService.startGoodsPickedBatch, [transIds])];
11413
+ });
11414
+ });
11415
+ };
11335
11416
  TransactionConnectorService.prototype.startDeliveryNotesBatch = function (request) {
11336
11417
  return __awaiter(this, void 0, void 0, function () {
11337
11418
  return __generator(this, function (_a) {
@@ -18408,6 +18489,36 @@
18408
18489
  });
18409
18490
  });
18410
18491
  };
18492
+ TransactionService.prototype.startToAllocateUnAllocatedLinesBatch = function (transIds) {
18493
+ return __awaiter(this, void 0, void 0, function () {
18494
+ return __generator(this, function (_a) {
18495
+ switch (_a.label) {
18496
+ case 0: return [4 /*yield*/, this.connector.startToAllocateUnAllocatedLinesBatch(transIds)];
18497
+ case 1: return [2 /*return*/, _a.sent()];
18498
+ }
18499
+ });
18500
+ });
18501
+ };
18502
+ TransactionService.prototype.startGoodsToBePickedBatch = function (transIds) {
18503
+ return __awaiter(this, void 0, void 0, function () {
18504
+ return __generator(this, function (_a) {
18505
+ switch (_a.label) {
18506
+ case 0: return [4 /*yield*/, this.connector.startGoodsToBePickedBatch(transIds)];
18507
+ case 1: return [2 /*return*/, _a.sent()];
18508
+ }
18509
+ });
18510
+ });
18511
+ };
18512
+ TransactionService.prototype.startGoodsPickedBatch = function (transIds) {
18513
+ return __awaiter(this, void 0, void 0, function () {
18514
+ return __generator(this, function (_a) {
18515
+ switch (_a.label) {
18516
+ case 0: return [4 /*yield*/, this.connector.startGoodsPickedBatch(transIds)];
18517
+ case 1: return [2 /*return*/, _a.sent()];
18518
+ }
18519
+ });
18520
+ });
18521
+ };
18411
18522
  TransactionService.prototype.startDeliveryNotesBatch = function (request) {
18412
18523
  return __awaiter(this, void 0, void 0, function () {
18413
18524
  return __generator(this, function (_a) {
@@ -25239,7 +25350,6 @@
25239
25350
  _this.reportDocumentPrintRequest = new reportingDocumentPrintSignDocBaseRequest.ReportingDocumentPrintSignDocBaseRequest();
25240
25351
  _this.reportDocumentPdfRequest = new pdfInvoiceRequest.PdfInvoiceRequest();
25241
25352
  _this.localCheckboxState = false;
25242
- _this.colliCheckboxState = false;
25243
25353
  _this.commitDate = new Date();
25244
25354
  _this.globalWarehouseLocation = '-';
25245
25355
  _this.internalParamMLocat = false;
@@ -25285,9 +25395,6 @@
25285
25395
  TransactionQuickAccessReceivedGoodsComponent.prototype.handleSelectAllLines = function (value) {
25286
25396
  this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.next(value);
25287
25397
  };
25288
- TransactionQuickAccessReceivedGoodsComponent.prototype.handleNoColliStickers = function (value) {
25289
- this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.next(value);
25290
- };
25291
25398
  TransactionQuickAccessReceivedGoodsComponent.prototype.handleGlobalLocationChange = function (location) {
25292
25399
  var _this = this;
25293
25400
  this.globalWarehouseLocation = location;
@@ -25338,7 +25445,7 @@
25338
25445
  TransactionQuickAccessReceivedGoodsComponent.decorators = [
25339
25446
  { type: i0.Component, args: [{
25340
25447
  selector: "co-transaction-quick-access-received-goods",
25341
- template: "\n <div class=\"quick-access-wrapper\" *ngIf=\"!hideQuickAccessContent\">\n <div>\n <co-input-date\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"commitDate\"\n ></co-input-date>\n <co-input-text\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [(model)]=\"packingSlipNr\"\n ></co-input-text>\n <!--\n <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat && showWarehouseLocationButton\"\n [locationNr]=\"globalWarehouseLocation\"\n [warehouseNumber]=\"warehouseNumber\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n -->\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"showProcessingLoader\"\n [title]=\"'PROCESS'\"\n (sendIconClicked)=\"handleCommitEvent()\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n </div>\n <div>\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [label]=\"'SELECT_ALL' | localize\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [label]=\"'NO_PACKAGE_STICKERS' | localize\"\n [(model)]=\"colliCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n </div>\n </div>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [printerList]=\"printerList\"\n [headerTitle]=\"'Printer en lay-out selectie'\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Pdf]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [isDocSignEnabled]=\"true\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n ",
25448
+ template: "\n <div class=\"quick-access-wrapper\" *ngIf=\"!hideQuickAccessContent\">\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n <co-input-date\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"commitDate\"\n ></co-input-date>\n <co-input-text\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [(model)]=\"packingSlipNr\"\n ></co-input-text>\n<!--\n <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat && showWarehouseLocationButton\"\n [locationNr]=\"globalWarehouseLocation\"\n [warehouseNumber]=\"warehouseNumber\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n-->\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"showProcessingLoader\"\n [title]=\"'PROCESS'\"\n (sendIconClicked)=\"handleCommitEvent()\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n </div>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [printerList]=\"printerList\"\n [headerTitle]=\"'Printer en lay-out selectie'\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Pdf]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [isDocSignEnabled]=\"true\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n ",
25342
25449
  encapsulation: i0.ViewEncapsulation.None
25343
25450
  },] }
25344
25451
  ];
@@ -26505,7 +26612,7 @@
26505
26612
  TransactionReceiveGoodsLineComponent.decorators = [
26506
26613
  { type: i0.Component, args: [{
26507
26614
  selector: "co-transaction-receive-goods-line",
26508
- 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 >\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column1 small-statusbar\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\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 ></co-transaction-line-warehouse-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-warehouse-location-button\n *ngIf=\"transactionLine.isLocationRequired\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\"\n >\n </co-transaction-line-warehouse-location-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-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\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 </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_ACCEPTED'\"></co-transaction-line-label>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n </div>\n <div class=\"column4\">\n <div class=\"transaction-field-wrapper\" *ngIf=\"transactionLine.isBatchNrRequired\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'BATCH_NR'\"></co-transaction-line-label>\n <co-input-text class=\"side-panel-input\"\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>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_TO_RECEIVE'\"></co-transaction-line-label>\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 </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-print-package-sticker\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [inputLabel]=\"true\"\n ></co-transaction-print-package-sticker>\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 [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
26615
+ 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 >\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column1 small-statusbar\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\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 ></co-transaction-line-warehouse-button>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-warehouse-location-button\n *ngIf=\"transactionLine.isLocationRequired\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\"\n >\n </co-transaction-line-warehouse-location-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-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\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 </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_ACCEPTED'\"></co-transaction-line-label>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n </div>\n <div class=\"column4\">\n <div class=\"transaction-field-wrapper\" *ngIf=\"transactionLine.isBatchNrRequired\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'BATCH_NR'\"></co-transaction-line-label>\n <co-input-text class=\"side-panel-input\"\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>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-print-package-sticker\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [inputLabel]=\"true\"\n ></co-transaction-print-package-sticker>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_TO_RECEIVE'\"></co-transaction-line-label>\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 </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 [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
26509
26616
  encapsulation: i0.ViewEncapsulation.None,
26510
26617
  changeDetection: i0.ChangeDetectionStrategy.OnPush
26511
26618
  },] }
@@ -28822,7 +28929,7 @@
28822
28929
  try {
28823
28930
  for (var _b = __values(this.transactionLines), _c = _b.next(); !_c.done; _c = _b.next()) {
28824
28931
  var transactionLines = _c.value;
28825
- if (transactionLines.lineType !== 'T') {
28932
+ if (transactionLines.lineType !== transactionLineType_enum.TransactionLineType.TextLine) {
28826
28933
  if (transactionLines.amount - transactionLines.articleLineStatus.quantityToBePicked > 0) {
28827
28934
  this.hasArticlesToBePicked = true;
28828
28935
  }
@@ -28887,8 +28994,10 @@
28887
28994
  try {
28888
28995
  for (var _b = __values(this.transactionLines), _c = _b.next(); !_c.done; _c = _b.next()) {
28889
28996
  var transactionLines = _c.value;
28890
- if (transactionLines.amount - transactionLines.articleLineStatus.quantityPicked > 0) {
28891
- this.hasArticlesToPick = true;
28997
+ if (transactionLines.lineType !== transactionLineType_enum.TransactionLineType.TextLine) {
28998
+ if (transactionLines.amount - transactionLines.articleLineStatus.quantityPicked > 0) {
28999
+ this.hasArticlesToPick = true;
29000
+ }
28892
29001
  }
28893
29002
  }
28894
29003
  }
@@ -38007,7 +38116,6 @@
38007
38116
  }));
38008
38117
  };
38009
38118
  TransactionLineSidePanelComponent.prototype.ngOnDestroy = function () {
38010
- this._purchaseConfirmationService.reset();
38011
38119
  this._subs.forEach(function (s) { return s.unsubscribe(); });
38012
38120
  };
38013
38121
  TransactionLineSidePanelComponent.prototype.updateActiveCategory = function (button) {
@@ -45042,6 +45150,7 @@
45042
45150
  this.showProcessOrdersLoader = false;
45043
45151
  this.showBatchOptions = false;
45044
45152
  this.showShippingMethodDialog = false;
45153
+ this.showDatePickDialog = false;
45045
45154
  this.showBatchProcessDialog = false;
45046
45155
  this.checkedAvailability = false;
45047
45156
  this.selectedTransactions = [];
@@ -45177,8 +45286,30 @@
45177
45286
  TransactionSearchResultComponent.prototype.checkIfAllSelected = function () {
45178
45287
  return this.searchService.transactions.every(function (item) { return item.selected; });
45179
45288
  };
45180
- TransactionSearchResultComponent.prototype.showShippingModal = function () {
45181
- this.showShippingMethodDialog = true;
45289
+ TransactionSearchResultComponent.prototype.showAdditionalOptions = function () {
45290
+ var _this = this;
45291
+ var selectedTransactionsIds = this.selectedTransactions.map(function (transaction) { return transaction.transId; });
45292
+ if (this.batchCategory === 'allocate' || this.batchCategory === 'toewijzen') {
45293
+ this.showProcessOrdersLoader = true;
45294
+ this.transactionService.startToAllocateUnAllocatedLinesBatch(selectedTransactionsIds)
45295
+ .then(function () { return _this._showBatchProcessesStatus(); })
45296
+ .catch(function () { return _this.showProcessOrdersLoader = false; });
45297
+ }
45298
+ else if (this.batchCategory === 'to be picked') {
45299
+ this.showProcessOrdersLoader = true;
45300
+ this.transactionService.startGoodsToBePickedBatch(selectedTransactionsIds)
45301
+ .then(function () { return _this._showBatchProcessesStatus(); })
45302
+ .catch(function () { return _this.showProcessOrdersLoader = false; });
45303
+ }
45304
+ else if (this.batchCategory === 'picked') {
45305
+ this.showProcessOrdersLoader = true;
45306
+ this.transactionService.startGoodsPickedBatch(selectedTransactionsIds)
45307
+ .then(function () { return _this._showBatchProcessesStatus(); })
45308
+ .catch(function () { return _this.showProcessOrdersLoader = false; });
45309
+ }
45310
+ else {
45311
+ this.showShippingMethodDialog = true;
45312
+ }
45182
45313
  };
45183
45314
  TransactionSearchResultComponent.prototype.onToggleAllOrders = function (allSelected) {
45184
45315
  var _this = this;
@@ -45223,7 +45354,7 @@
45223
45354
  }
45224
45355
  };
45225
45356
  TransactionSearchResultComponent.prototype._showBatchOptions = function (category) {
45226
- this.showBatchOptions = ['overview', 'purchase', 'delivery order', 'invoice', 'overzicht', 'inkoop', 'afleverbon', 'factuur'].includes(category);
45357
+ this.showBatchOptions = ['overview', 'purchase', 'allocate', 'to be picked', 'picked', 'delivery order', 'invoice', 'overzicht', 'inkoop', 'toewijzen', 'afleverbon', 'factuur'].includes(category);
45227
45358
  };
45228
45359
  TransactionSearchResultComponent.prototype._showBatchProcessesStatus = function () {
45229
45360
  var _this = this;
@@ -45242,7 +45373,7 @@
45242
45373
  TransactionSearchResultComponent.decorators = [
45243
45374
  { type: i0.Component, args: [{
45244
45375
  selector: 'co-transaction-search-result',
45245
- template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"actions-wrapper\"\n *ngIf=\"searchService.transactions?.length > 0 && salesOrdersPageActive && showBatchOptions\">\n <co-input-checkbox\n [model]=\"checkIfAllSelected()\"\n [label]=\"checkIfAllSelected() ? 'DESELECT_ALL' : 'SELECT_ALL_ORDERS' | localize\"\n (modelChange)=\"onToggleAllOrders(checkIfAllSelected())\">\n </co-input-checkbox>\n <co-quick-send-button\n *ngIf=\"checkIfSelected()\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"showProcessOrdersLoader\"\n (sendIconClicked)=\"showShippingModal()\">\n </co-quick-send-button>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles && !extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [draggable]=\"draggableTransactions\"\n (dragstart)=\"dragStarted($event, transaction)\"\n (dragend)=\"dragEnd($event)\"\n [transaction]=\"transaction\"\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n [selected]=\"transaction.selected\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid && !extendedTransactionSearch\">\n <co-transaction-search-grid\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-grid>\n </div>\n\n <div class=\"transaction-extended-search-result-tile-wrapper\" *ngIf=\"extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-sales-line-select-tile\n [transaction]=\"transaction\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\"\n [extendedTransactionSearch]=\"extendedTransactionSearch\">\n </co-transaction-search-sales-line-select-tile>\n </div>\n </div>\n\n <co-pagination-bar\n *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n\n <div class=\"empty-state-wrapper\" *ngIf=\"searchService.transactions && searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n </ng-container>\n\n <co-shipping-method-dialog\n *ngIf=\"showShippingMethodDialog\"\n [category]=\"batchCategory\"\n [selectedTransactions]=\"selectedTransactions\"\n (cancelClicked)=\"showShippingMethodDialog = false\"\n (saveClicked)=\"shippingDialogSaveClicked($event)\">\n </co-shipping-method-dialog>\n\n <co-batch-process-dialog\n *ngIf=\"showBatchProcessDialog\"\n @fadeInOut\n [batchJobProgress]=\"batchJobProgress\"\n (close)=\"showBatchProcessDialog = false\">\n </co-batch-process-dialog>\n ",
45376
+ template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"actions-wrapper\"\n *ngIf=\"searchService.transactions?.length > 0 && salesOrdersPageActive && showBatchOptions\">\n <co-input-checkbox\n [model]=\"checkIfAllSelected()\"\n [label]=\"checkIfAllSelected() ? 'DESELECT_ALL' : 'SELECT_ALL_ORDERS' | localize\"\n (modelChange)=\"onToggleAllOrders(checkIfAllSelected())\">\n </co-input-checkbox>\n <co-quick-send-button\n *ngIf=\"checkIfSelected()\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"showProcessOrdersLoader\"\n (sendIconClicked)=\"showAdditionalOptions()\">\n </co-quick-send-button>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles && !extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [draggable]=\"draggableTransactions\"\n (dragstart)=\"dragStarted($event, transaction)\"\n (dragend)=\"dragEnd($event)\"\n [transaction]=\"transaction\"\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n [selected]=\"transaction.selected\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid && !extendedTransactionSearch\">\n <co-transaction-search-grid\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-grid>\n </div>\n\n <div class=\"transaction-extended-search-result-tile-wrapper\" *ngIf=\"extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-sales-line-select-tile\n [transaction]=\"transaction\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\"\n [extendedTransactionSearch]=\"extendedTransactionSearch\">\n </co-transaction-search-sales-line-select-tile>\n </div>\n </div>\n\n <co-pagination-bar\n *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n\n <div class=\"empty-state-wrapper\" *ngIf=\"searchService.transactions && searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n </ng-container>\n\n <co-shipping-method-dialog\n *ngIf=\"showShippingMethodDialog\"\n [category]=\"batchCategory\"\n [selectedTransactions]=\"selectedTransactions\"\n (cancelClicked)=\"showShippingMethodDialog = false\"\n (saveClicked)=\"shippingDialogSaveClicked($event)\">\n </co-shipping-method-dialog>\n\n <co-batch-process-dialog\n *ngIf=\"showBatchProcessDialog\"\n @fadeInOut\n [batchJobProgress]=\"batchJobProgress\"\n (close)=\"showBatchProcessDialog = false\">\n </co-batch-process-dialog>\n\n <co-transaction-date-pick-dialog\n *ngIf=\"showDatePickDialog\"\n (cancelClicked)=\"showDatePickDialog = false\">\n </co-transaction-date-pick-dialog>\n ",
45246
45377
  animations: [
45247
45378
  animations.trigger('fadeInOut', [
45248
45379
  animations.transition(':enter', [
@@ -46025,6 +46156,68 @@
46025
46156
  },] }
46026
46157
  ];
46027
46158
 
46159
+ var TransactionDatePickDialogComponent = /** @class */ (function () {
46160
+ function TransactionDatePickDialogComponent(iconCacheService, transactionService) {
46161
+ this.iconCacheService = iconCacheService;
46162
+ this.transactionService = transactionService;
46163
+ this.saveClicked = new i0.EventEmitter();
46164
+ this.cancelClicked = new i0.EventEmitter();
46165
+ this.icons = Icon;
46166
+ }
46167
+ TransactionDatePickDialogComponent.prototype.showClass = function () {
46168
+ return true;
46169
+ };
46170
+ TransactionDatePickDialogComponent.prototype.saveButtonClicked = function () {
46171
+ this.saveClicked.emit();
46172
+ };
46173
+ TransactionDatePickDialogComponent.prototype.cancelButtonClicked = function () {
46174
+ this.cancelClicked.emit();
46175
+ };
46176
+ return TransactionDatePickDialogComponent;
46177
+ }());
46178
+ TransactionDatePickDialogComponent.decorators = [
46179
+ { type: i0.Component, args: [{
46180
+ selector: 'co-transaction-date-pick-dialog',
46181
+ template: "\n <co-dialog\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"cancelButtonClicked()\">\n <ng-template #headerTemplate>\n <h2 class=\"header\" [textContent]=\"'SELECT_DATE' | localize\"></h2>\n </ng-template>\n\n <div class=\"save-dialog-contents\">\n <p>Select a picking date.</p>\n\n\n </div>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button\n class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"saveButtonClicked()\">\n </co-button>\n <co-button\n class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"cancelButtonClicked()\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
46182
+ encapsulation: i0.ViewEncapsulation.None
46183
+ },] }
46184
+ ];
46185
+ TransactionDatePickDialogComponent.ctorParameters = function () { return [
46186
+ { type: IconCacheService },
46187
+ { type: TransactionService }
46188
+ ]; };
46189
+ TransactionDatePickDialogComponent.propDecorators = {
46190
+ showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-date-pick-dialog',] }],
46191
+ saveClicked: [{ type: i0.Output }],
46192
+ cancelClicked: [{ type: i0.Output }]
46193
+ };
46194
+
46195
+ var TransactionDatePickDialogModule = /** @class */ (function () {
46196
+ function TransactionDatePickDialogModule() {
46197
+ }
46198
+ return TransactionDatePickDialogModule;
46199
+ }());
46200
+ TransactionDatePickDialogModule.decorators = [
46201
+ { type: i0.NgModule, args: [{
46202
+ imports: [
46203
+ common.CommonModule,
46204
+ CoreModule,
46205
+ corecomponents_v12.CoDialogModule,
46206
+ corecomponents_v12.IconModule,
46207
+ PipeModule,
46208
+ corecomponents_v12.ButtonModule,
46209
+ corecomponents_v12.InputCheckboxModule,
46210
+ corecomponents_v12.ListOfValuesModule
46211
+ ],
46212
+ declarations: [
46213
+ TransactionDatePickDialogComponent
46214
+ ],
46215
+ exports: [
46216
+ TransactionDatePickDialogComponent
46217
+ ]
46218
+ },] }
46219
+ ];
46220
+
46028
46221
  var TransactionSearchResultModule = /** @class */ (function () {
46029
46222
  function TransactionSearchResultModule() {
46030
46223
  }
@@ -46059,6 +46252,7 @@
46059
46252
  corecomponents_v12.ButtonModule,
46060
46253
  ShippingMethodDialogModule,
46061
46254
  BatchProcessDialogModule,
46255
+ TransactionDatePickDialogModule,
46062
46256
  TransactionSearchSalesLineSelectTileModule
46063
46257
  ],
46064
46258
  declarations: [
@@ -47327,6 +47521,7 @@
47327
47521
  TransactionStatusbarModule,
47328
47522
  ShippingMethodDialogModule,
47329
47523
  BatchProcessDialogModule,
47524
+ TransactionDatePickDialogModule,
47330
47525
  SearchFeatureModule,
47331
47526
  PipeModule,
47332
47527
  router.RouterModule
@@ -47810,9 +48005,11 @@
47810
48005
  _this.showSidePanelForConfirmationAI = true;
47811
48006
  _this.showSidePanel = true;
47812
48007
  _this._checkActiveLine();
48008
+ _this.changeDetector.detectChanges();
47813
48009
  }
47814
48010
  else {
47815
48011
  _this.showSidePanelForConfirmationAI = false;
48012
+ _this.changeDetector.detectChanges();
47816
48013
  }
47817
48014
  }), this.transactionEventService.openSidePanel.subscribe(function (line) {
47818
48015
  _this.activeTransactionLine = line;
@@ -51589,12 +51786,18 @@
51589
51786
  TransactionHeaderPopupPaymentComponent.prototype.openPayment = function (event) {
51590
51787
  var _a;
51591
51788
  return __awaiter(this, void 0, void 0, function () {
51789
+ var lastTransaction;
51790
+ var _this = this;
51592
51791
  return __generator(this, function (_b) {
51593
51792
  switch (_b.label) {
51594
51793
  case 0:
51595
51794
  event.preventDefault();
51596
51795
  event.stopPropagation();
51597
51796
  this.transactionIdToPay = (_a = this.transactionIdToPay) !== null && _a !== void 0 ? _a : this.transactionInfo.id;
51797
+ if (this.orderPaymentAnalysis.filter(function (payment) { return payment.transactionKind === _this.transKind.SalesInvoice && payment.outstandingAmount > 0; }).length === 1) {
51798
+ lastTransaction = this.orderPaymentAnalysis.filter(function (payment) { return payment.transactionKind === _this.transKind.SalesInvoice && payment.outstandingAmount > 0; })[0];
51799
+ this.transactionIdToPay = lastTransaction.transactionId;
51800
+ }
51598
51801
  return [4 /*yield*/, this.lockTransaction()];
51599
51802
  case 1:
51600
51803
  if (_b.sent()) {
@@ -57288,7 +57491,8 @@
57288
57491
  ];
57289
57492
 
57290
57493
  var TransactionCardComponent = /** @class */ (function () {
57291
- function TransactionCardComponent(_transactionHeaderService, _transactionLineService, _transactionEventService, _changeDetector, _mappingService, _compFactoryResolver, _appRef) {
57494
+ function TransactionCardComponent(purchaseConfirmationService, _transactionHeaderService, _transactionLineService, _transactionEventService, _changeDetector, _mappingService, _compFactoryResolver, _appRef, _lineSelectionService) {
57495
+ this.purchaseConfirmationService = purchaseConfirmationService;
57292
57496
  this._transactionHeaderService = _transactionHeaderService;
57293
57497
  this._transactionLineService = _transactionLineService;
57294
57498
  this._transactionEventService = _transactionEventService;
@@ -57296,6 +57500,7 @@
57296
57500
  this._mappingService = _mappingService;
57297
57501
  this._compFactoryResolver = _compFactoryResolver;
57298
57502
  this._appRef = _appRef;
57503
+ this._lineSelectionService = _lineSelectionService;
57299
57504
  this.preview = false;
57300
57505
  this.selected = false;
57301
57506
  this.isFirst = false;
@@ -57311,6 +57516,8 @@
57311
57516
  // }
57312
57517
  // }
57313
57518
  this.showSidePanel = false;
57519
+ this.showSidePanelForConfirmationAI = false;
57520
+ this.activeTransactionLine = new transactionLineInfo_bo.TransactionLineInfo();
57314
57521
  this._subs = [];
57315
57522
  }
57316
57523
  Object.defineProperty(TransactionCardComponent.prototype, "container", {
@@ -57351,7 +57558,20 @@
57351
57558
  TransactionCardComponent.prototype.ngOnInit = function () {
57352
57559
  var _this = this;
57353
57560
  this._subs.push(this._transactionEventService.openSidePanel.subscribe(function (line) {
57354
- _this.showSidePanel = !!line;
57561
+ _this.activeTransactionLine = line;
57562
+ _this.showSidePanel = true;
57563
+ _this._changeDetector.detectChanges();
57564
+ }), this.purchaseConfirmationService.confirmationNeeded.subscribe(function (needed) {
57565
+ if (needed) {
57566
+ _this.showSidePanelForConfirmationAI = true;
57567
+ _this.showSidePanel = true;
57568
+ _this._checkActiveLine();
57569
+ _this._changeDetector.detectChanges();
57570
+ }
57571
+ else {
57572
+ _this.showSidePanelForConfirmationAI = false;
57573
+ _this._changeDetector.detectChanges();
57574
+ }
57355
57575
  }));
57356
57576
  };
57357
57577
  TransactionCardComponent.prototype.ngOnDestroy = function () {
@@ -57401,6 +57621,12 @@
57401
57621
  this._changeDetector.detectChanges();
57402
57622
  }
57403
57623
  };
57624
+ TransactionCardComponent.prototype._checkActiveLine = function () {
57625
+ if (this.showSidePanelForConfirmationAI && this.transactionLine) {
57626
+ // this.activeTransactionLine = this.transactionLines[0];
57627
+ this._lineSelectionService.selectedTransactionLine = this.transactionLine;
57628
+ }
57629
+ };
57404
57630
  return TransactionCardComponent;
57405
57631
  }());
57406
57632
  TransactionCardComponent.decorators = [
@@ -57414,13 +57640,15 @@
57414
57640
  },] }
57415
57641
  ];
57416
57642
  TransactionCardComponent.ctorParameters = function () { return [
57643
+ { type: PurchaseConfirmationService },
57417
57644
  { type: TransactionHeaderService },
57418
57645
  { type: TransactionLineService },
57419
57646
  { type: TransactionEventService },
57420
57647
  { type: i0.ChangeDetectorRef },
57421
57648
  { type: TransactionMappingService },
57422
57649
  { type: i0.ComponentFactoryResolver },
57423
- { type: i0.ApplicationRef }
57650
+ { type: i0.ApplicationRef },
57651
+ { type: LineSelectionService }
57424
57652
  ]; };
57425
57653
  TransactionCardComponent.propDecorators = {
57426
57654
  container: [{ type: i0.ViewChild, args: ['transactionCard', { read: i0.ViewContainerRef },] }],
@@ -63389,6 +63617,8 @@
63389
63617
  exports.TransactionCreateDateLabelModule = TransactionCreateDateLabelModule;
63390
63618
  exports.TransactionCreateWizardComponent = TransactionCreateWizardComponent;
63391
63619
  exports.TransactionCreateWizardModule = TransactionCreateWizardModule;
63620
+ exports.TransactionDatePickDialogComponent = TransactionDatePickDialogComponent;
63621
+ exports.TransactionDatePickDialogModule = TransactionDatePickDialogModule;
63392
63622
  exports.TransactionDialogService = TransactionDialogService;
63393
63623
  exports.TransactionEventService = TransactionEventService;
63394
63624
  exports.TransactionFilterComponent = TransactionFilterComponent;