@colijnit/transaction 12.1.74 → 12.1.75

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.
@@ -13481,6 +13481,7 @@
13481
13481
  [{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderInvoice }, TransactionOrderDeliveryLineComponent],
13482
13482
  [{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionPurchaseLineComponent],
13483
13483
  [{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
13484
+ [{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionReceiveGoodsLineComponent],
13484
13485
  ]);
13485
13486
  this._transactionFilterComponent = new Map([
13486
13487
  [{ type: transactionKind_enum.TransactionKind.SalesOrder }, TransactionSalesOrderFilterComponent],
@@ -19843,7 +19844,9 @@
19843
19844
  this.getPurchasePortalLine.filterObject = this.purchasePortalFilter;
19844
19845
  this.transactionService.getPurchasePortalLines(this.getPurchasePortalLine).then(function (result) {
19845
19846
  _this.transactionService.purchasePortalLine = result;
19846
- _this.filteredDocBatchArray = _this.transactionService.purchasePortalLine[0].docBatchArray.filter(function (value) { return value.historical === 'G'; });
19847
+ _this.transactionService.purchasePortalLine.forEach(function (element) {
19848
+ _this.filteredDocBatchArray = element.docBatchArray.filter(function (value) { return value.historical === 'G'; });
19849
+ });
19847
19850
  });
19848
19851
  return [2 /*return*/];
19849
19852
  });
@@ -19942,10 +19945,23 @@
19942
19945
  this.showAddOrder = false;
19943
19946
  this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
19944
19947
  this.docBatchSaved = new i0.EventEmitter();
19948
+ this.isEditMode = false;
19945
19949
  }
19946
19950
  TransactionConfirmationDetailsComponent.prototype.showClass = function () {
19947
19951
  return true;
19948
19952
  };
19953
+ Object.defineProperty(TransactionConfirmationDetailsComponent.prototype, "isEditing", {
19954
+ get: function () {
19955
+ return this.isEditMode;
19956
+ },
19957
+ set: function (value) {
19958
+ this.isEditMode = value;
19959
+ console.log(this.isEditMode);
19960
+ console.log(this.isEditing);
19961
+ },
19962
+ enumerable: false,
19963
+ configurable: true
19964
+ });
19949
19965
  TransactionConfirmationDetailsComponent.prototype.addButtonClicked = function () {
19950
19966
  this.showAddOrder = !this.showAddOrder;
19951
19967
  };
@@ -19955,10 +19971,12 @@
19955
19971
  switch (_a.label) {
19956
19972
  case 0:
19957
19973
  if (!(this.newDocBatchArray.docAmount && this.newDocBatchArray.confirmedPrice)) return [3 /*break*/, 2];
19958
- this.newDocBatchArray.docDateOrg = new Date();
19959
19974
  this.newDocBatchArray.deleteLine = "F";
19960
19975
  this.newDocBatchArray.historical = "G";
19961
- this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
19976
+ if (!this.newDocBatchArray.docDateOrg) {
19977
+ this.newDocBatchArray.docDateOrg = this.newDocBatchArray.docDate;
19978
+ this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
19979
+ }
19962
19980
  this.transactionService.purchasePortalLine[0].docKind = "IB";
19963
19981
  return [4 /*yield*/, this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0])];
19964
19982
  case 1:
@@ -19972,12 +19990,16 @@
19972
19990
  });
19973
19991
  });
19974
19992
  };
19993
+ TransactionConfirmationDetailsComponent.prototype.handleCancelClick = function () {
19994
+ this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
19995
+ this.isEditing = false;
19996
+ };
19975
19997
  return TransactionConfirmationDetailsComponent;
19976
19998
  }());
19977
19999
  TransactionConfirmationDetailsComponent.decorators = [
19978
20000
  { type: i0.Component, args: [{
19979
20001
  selector: "co-transaction-confirmation-details",
19980
- template: "\n <div class=\"confirmation-details-wrapper\">\n <co-form>\n <div class=\"details-header\">\n <span class=\"header-left-text\" [textContent]=\"'ORDER_CONFIRMATIONS' | localize\"></span>\n <co-icon class=\"header-left-text\" [iconData]=\"iconCacheService.getIcon(icons.PlusRound)\"\n (click)=\"addButtonClicked()\"></co-icon>\n <div class=\"details-header-right\">\n <span class=\"header-right-text\" [textContent]=\"'REQUESTED_DELIVERY' | localize\"></span>\n <span class=\"header-right-text-colon\" [textContent]=\"': '\"></span>\n <span class=\"header-right-text\" [textContent]=\"transactionLines.deliveryDate | date:'dd-MM-YYYY'\"></span>\n </div>\n </div>\n <div *ngIf=\"showAddOrder\" class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.docAmount\"\n [placeholder]=\"'AMOUNT' | localize\"\n required\n >\n </co-input-text>\n <co-input-date class=\"details-input\"\n [(model)]=\"newDocBatchArray.docDate\"\n required\n >\n </co-input-date>\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.confirmedPrice\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\n required\n >\n </co-input-text>\n </div>\n\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.reference\"\n [placeholder]=\"'REFERENCE' | localize\">\n </co-input-text>\n\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.deliveryBatch\"\n [placeholder]=\"'DELIVERY_BATCH' | localize\">\n </co-input-text>\n </div>\n </div>\n </co-form>\n\n <div *ngIf=\"showAddOrder\" class=\"save-cancel-wrapper\">\n <co-default-ok-cancel-buttons (okClick)=\"handleOkClick()\"></co-default-ok-cancel-buttons>\n </div>\n </div>\n ",
20002
+ template: "\n <div class=\"confirmation-details-wrapper\">\n <co-form>\n <div class=\"details-header\">\n <span class=\"header-left-text\" [textContent]=\"'ORDER_CONFIRMATIONS' | localize\"></span>\n <co-icon class=\"header-left-text\" [iconData]=\"iconCacheService.getIcon(icons.PlusRound)\"\n (click)=\"addButtonClicked()\"></co-icon>\n <div class=\"details-header-right\">\n <span class=\"header-right-text\" [textContent]=\"'REQUESTED_DELIVERY' | localize\"></span>\n <span class=\"header-right-text-colon\" [textContent]=\"': '\"></span>\n <span class=\"header-right-text\" [textContent]=\"transactionLines.deliveryDate | date:'dd-MM-YYYY'\"></span>\n </div>\n </div>\n <div class=\"header-inform-user\" *ngIf=\"isEditing\">\n <span class=\"header-inform-user editting\" [textContent]=\"'EDITING_DATA_ROW' | localize\"></span>\n </div>\n <div *ngIf=\"showAddOrder\" class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.docAmount\"\n [placeholder]=\"'AMOUNT' | localize\"\n required\n >\n </co-input-text>\n <co-input-date class=\"details-input\"\n [(model)]=\"newDocBatchArray.docDate\"\n required\n >\n </co-input-date>\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.confirmedPrice\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\n required\n >\n </co-input-text>\n </div>\n\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.reference\"\n [placeholder]=\"'REFERENCE' | localize\">\n </co-input-text>\n\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.deliveryBatch\"\n [placeholder]=\"'DELIVERY_BATCH' | localize\">\n </co-input-text>\n </div>\n </div>\n </co-form>\n\n <div *ngIf=\"showAddOrder\" class=\"save-cancel-wrapper\">\n <co-default-ok-cancel-buttons (okClick)=\"handleOkClick()\" (cancelClick)=\"handleCancelClick()\"></co-default-ok-cancel-buttons>\n </div>\n </div>\n ",
19981
20003
  encapsulation: i0.ViewEncapsulation.None,
19982
20004
  providers: [
19983
20005
  corecomponents_v12.FormMasterService
@@ -19993,6 +20015,7 @@
19993
20015
  transactionInfoNr: [{ type: i0.Input }],
19994
20016
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-confirmation-details",] }],
19995
20017
  newDocBatchArray: [{ type: i0.Input }],
20018
+ isEditing: [{ type: i0.Input }],
19996
20019
  docBatchSaved: [{ type: i0.Output }]
19997
20020
  };
19998
20021
 
@@ -20092,6 +20115,7 @@
20092
20115
  this.goodsReceiptStatus = new goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory();
20093
20116
  this.selectedLineDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
20094
20117
  this.isDocBatchSaved = false;
20118
+ this.editingMode = false;
20095
20119
  this._transactionInfo = new transactionInfo_bo.TransactionInfo();
20096
20120
  }
20097
20121
  Object.defineProperty(TransactionLineSidePanelPurchaseComponent.prototype, "transactionInfo", {
@@ -20126,6 +20150,7 @@
20126
20150
  };
20127
20151
  TransactionLineSidePanelPurchaseComponent.prototype.fillInputOnClick = function (data) {
20128
20152
  this.selectedLineDocBatchArray = data;
20153
+ this.editingMode = true;
20129
20154
  };
20130
20155
  TransactionLineSidePanelPurchaseComponent.prototype.docBatchSaved = function (data) {
20131
20156
  this.isDocBatchSaved = data;
@@ -20135,7 +20160,7 @@
20135
20160
  TransactionLineSidePanelPurchaseComponent.decorators = [
20136
20161
  { type: i0.Component, args: [{
20137
20162
  selector: "co-transaction-line-side-panel-purchase",
20138
- template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderOrderConfirmation\">\n <co-transaction-confirmation-details\n [transactionInfoNr]=\"transactionInfo.transactionNr\"\n [transactionLines]=\"transactionLine\"\n [newDocBatchArray]=\"selectedLineDocBatchArray\"\n (docBatchSaved)=\"docBatchSaved($event)\"\n ></co-transaction-confirmation-details>\n <co-transaction-confirmation-history\n [transactionLines]=\"transactionLine\"\n [transactionInfoNr]=\"transactionInfo.transactionNr\"\n [transactionId]=\"transactionInfo.id\"\n (lineSelected)=\"fillInputOnClick($event)\"\n [isDocBatchSaved]=\"isDocBatchSaved\"\n (docBatchApplied)=\"docBatchSaved($event)\"\n ></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-transaction-side-panel-edit-request-details\n [category]=\"categories.PurchaseOrderReceivedGoods\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"goodsReceiptStatus.quantityToReceive\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-side-panel-edit-request-details>\n <co-transaction-receiving-goods-history\n *ngIf=\"transactionLine.amount >= 0\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [goodsReceiptHistory]=\"goodsReceiptStatus.goodsReceiptHistory\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid\n *ngIf=\"transactionLine.amount < 0\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-available-stock-grid>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n ",
20163
+ template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderOrderConfirmation\">\n <co-transaction-confirmation-details\n [transactionInfoNr]=\"transactionInfo.transactionNr\"\n [transactionLines]=\"transactionLine\"\n [newDocBatchArray]=\"selectedLineDocBatchArray\"\n [isEditing]=\"editingMode\"\n (docBatchSaved)=\"docBatchSaved($event)\"\n ></co-transaction-confirmation-details>\n <co-transaction-confirmation-history\n [transactionLines]=\"transactionLine\"\n [transactionInfoNr]=\"transactionInfo.transactionNr\"\n [transactionId]=\"transactionInfo.id\"\n (lineSelected)=\"fillInputOnClick($event)\"\n [isDocBatchSaved]=\"isDocBatchSaved\"\n (docBatchApplied)=\"docBatchSaved($event)\"\n ></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-transaction-side-panel-edit-request-details\n [category]=\"categories.PurchaseOrderReceivedGoods\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"goodsReceiptStatus.quantityToReceive\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-side-panel-edit-request-details>\n <co-transaction-receiving-goods-history\n *ngIf=\"transactionLine.amount >= 0\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [goodsReceiptHistory]=\"goodsReceiptStatus.goodsReceiptHistory\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid\n *ngIf=\"transactionLine.amount < 0\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-available-stock-grid>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n ",
20139
20164
  encapsulation: i0.ViewEncapsulation.None
20140
20165
  },] }
20141
20166
  ];