@colijnit/transaction 12.1.210 → 12.1.211

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.
@@ -32,8 +32,8 @@
32
32
  function Version() {
33
33
  this.name = "@colijnit/transaction";
34
34
  this.description = "Colijn IT transaction package";
35
- this.symVer = "12.1.210";
36
- this.publishDate = "12-4-2024 11:51:57";
35
+ this.symVer = "12.1.211";
36
+ this.publishDate = "15-4-2024 22:56:13";
37
37
  }
38
38
  return Version;
39
39
  }());
@@ -19906,6 +19906,7 @@
19906
19906
  _this.commitDate = new Date();
19907
19907
  _this.globalWarehouseLocation = '-';
19908
19908
  _this.internalParamMLocat = false;
19909
+ _this.showProcessingLoader = false;
19909
19910
  _this._subs = [];
19910
19911
  return _this;
19911
19912
  }
@@ -19927,12 +19928,15 @@
19927
19928
  return __awaiter(this, void 0, void 0, function () {
19928
19929
  return __generator(this, function (_a) {
19929
19930
  switch (_a.label) {
19930
- case 0: return [4 /*yield*/, this.handleSend(this.defaultSendMethod)];
19931
+ case 0:
19932
+ this.showProcessingLoader = true;
19933
+ return [4 /*yield*/, this.handleSend(this.defaultSendMethod)];
19931
19934
  case 1:
19932
19935
  _a.sent();
19933
19936
  return [4 /*yield*/, this.transactionService.handleReceiveSelectedPurchaseOrders(this.commitDate, this.packingSlipNr)];
19934
19937
  case 2:
19935
19938
  _a.sent();
19939
+ this.showProcessingLoader = false;
19936
19940
  return [2 /*return*/];
19937
19941
  }
19938
19942
  });
@@ -19982,7 +19986,7 @@
19982
19986
  TransactionQuickAccessReceivedGoodsComponent.decorators = [
19983
19987
  { type: i0.Component, args: [{
19984
19988
  selector: "co-transaction-quick-access-received-goods",
19985
- 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 <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat\"\n [locationNr]=\"globalWarehouseLocation\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"showLoader\"\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]\"\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 ",
19989
+ 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 <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat\"\n [locationNr]=\"globalWarehouseLocation\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"this.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]\"\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 ",
19986
19990
  encapsulation: i0.ViewEncapsulation.None
19987
19991
  },] }
19988
19992
  ];
@@ -38347,6 +38351,7 @@
38347
38351
  _this.filteredDocBatchArray = [];
38348
38352
  _this.maxDocAmount = 0;
38349
38353
  _this.showPurchaseConfirmationAI = false;
38354
+ _this.confirmingOrder = false;
38350
38355
  _this._subs = [];
38351
38356
  return _this;
38352
38357
  }
@@ -38379,6 +38384,7 @@
38379
38384
  switch (_a.label) {
38380
38385
  case 0:
38381
38386
  if (!(this.docDeliveryBatch.docAmount && this.docDeliveryBatch.confirmedPrice)) return [3 /*break*/, 2];
38387
+ this.confirmingOrder = true;
38382
38388
  existingBatch = this.transactionLine.purchasePortalLine.docBatchArray.find(function (ba) { return ba.deliveryBatch === _this.docDeliveryBatch.deliveryBatch && ba.historical === "G"; });
38383
38389
  if (existingBatch) { // change that one
38384
38390
  existingBatch.confirmedPrice = this.docDeliveryBatch.confirmedPrice;
@@ -38397,6 +38403,7 @@
38397
38403
  success = _a.sent();
38398
38404
  if (success) {
38399
38405
  this._initNewDocDeliveryBatch();
38406
+ this.confirmingOrder = false;
38400
38407
  }
38401
38408
  return [3 /*break*/, 3];
38402
38409
  case 2: return [2 /*return*/];
@@ -38481,7 +38488,7 @@
38481
38488
  TransactionLinePurchaseConfirmationComponent.decorators = [
38482
38489
  { type: i0.Component, args: [{
38483
38490
  selector: 'co-transaction-line-purchase-confirmation',
38484
- template: "\n <div class=\"confirmation-details-wrapper form-and-buttons\">\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\n <co-form>\n <!--div class=\"header-wrapper\">\n <div class=\"status-header\">\n <span [textContent]=\"'STATE' | localize\"></span>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderOrderConfirmation\"\n ></co-transaction-line-statusbar>\n </div>\n </div-->\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.docAmount\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"maxDocAmount\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"docDeliveryBatch.docDate\"\n required\n ></co-input-date>\n <co-transaction-labeled-price-input class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.confirmedPrice\"\n [defaultEditMode]=\"false\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\n [required]=\"true\"\n ></co-transaction-labeled-price-input>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.reference\"\n [placeholder]=\"'REFERENCE' | localize\"\n ></co-input-text>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.deliveryBatch\"\n (modelChange)=\"handleDeliveryBatchChange()\"\n [placeholder]=\"'DELIVERY_BATCH' | localize\"\n ></co-input-text>\n </div>\n </co-form>\n </ng-container>\n <ng-container *ngIf=\"showPurchaseConfirmationAI\">\n <co-purchase-confirmation-lines\n [transaction]=\"transaction\"\n ></co-purchase-confirmation-lines>\n </ng-container>\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\n <div class=\"save-cancel-wrapper\">\n <co-button [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCancelClick()\"\n ></co-button>\n </div>\n </ng-container>\n </div>\n <co-transaction-confirmation-history *ngIf=\"!showPurchaseConfirmationAI\"\n [collection]=\"filteredDocBatchArray\"\n (deleteRow)=\"handleDeleteHistoryRow($event)\"\n (selectRow)=\"handleSelectHistoryRow($event)\"\n ></co-transaction-confirmation-history>\n ",
38491
+ template: "\n <div class=\"confirmation-details-wrapper form-and-buttons\">\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\n <co-form>\n <!--div class=\"header-wrapper\">\n <div class=\"status-header\">\n <span [textContent]=\"'STATE' | localize\"></span>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderOrderConfirmation\"\n ></co-transaction-line-statusbar>\n </div>\n </div-->\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.docAmount\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"maxDocAmount\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"docDeliveryBatch.docDate\"\n required\n ></co-input-date>\n <co-transaction-labeled-price-input class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.confirmedPrice\"\n [defaultEditMode]=\"false\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\n [required]=\"true\"\n ></co-transaction-labeled-price-input>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.reference\"\n [placeholder]=\"'REFERENCE' | localize\"\n ></co-input-text>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.deliveryBatch\"\n (modelChange)=\"handleDeliveryBatchChange()\"\n [placeholder]=\"'DELIVERY_BATCH' | localize\"\n ></co-input-text>\n </div>\n </co-form>\n </ng-container>\n <ng-container *ngIf=\"showPurchaseConfirmationAI\">\n <co-purchase-confirmation-lines\n [transaction]=\"transaction\"\n ></co-purchase-confirmation-lines>\n </ng-container>\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\n <div class=\"save-cancel-wrapper\">\n <co-button [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"this.confirmingOrder\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCancelClick()\"\n ></co-button>\n </div>\n </ng-container>\n </div>\n <co-transaction-confirmation-history *ngIf=\"!showPurchaseConfirmationAI\"\n [collection]=\"filteredDocBatchArray\"\n (deleteRow)=\"handleDeleteHistoryRow($event)\"\n (selectRow)=\"handleSelectHistoryRow($event)\"\n ></co-transaction-confirmation-history>\n ",
38485
38492
  providers: [
38486
38493
  corecomponents_v12.FormMasterService
38487
38494
  ],