@colijnit/transaction 12.1.53 → 12.1.55

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.
@@ -917,6 +917,7 @@
917
917
  "GOOD_DESCRIPTION": "Article description",
918
918
  "GROSS_PRICE": "Gross price",
919
919
  "HANDLED_BY": "Handled by",
920
+ "HISTORICAL": "Historisch",
920
921
  "HOUSE_NO": "Housenumber",
921
922
  "HOUSE_NO_ADDITION": "Housenumber addition",
922
923
  "IN": "In",
@@ -11026,7 +11027,7 @@
11026
11027
  TransactionSearchSalesOrderTileComponent.decorators = [
11027
11028
  { type: i0.Component, args: [{
11028
11029
  selector: "co-transaction-search-sales-order-tile",
11029
- template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n </div>\n <div class=\"tile-upper-middle\">\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"status-bar-wrapper\">\n <co-transaction-statusbar [transaction]=\"transaction\" [transactionKind]=\"transaction.transactionKind\"></co-transaction-statusbar>\n </div>\n <div class=\"header\"><span [textContent]=\"transaction.totalPriceWithVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\"></div>\n <div class=\"tile-middle-middle\">\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"tile-bottom-middle order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"tile-bottom-right order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n </div>",
11030
+ template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n </div>\n <div class=\"tile-upper-middle\">\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"status-bar-wrapper\">\n <co-transaction-statusbar [transaction]=\"transaction\" [transactionKind]=\"transaction.transactionKind\"></co-transaction-statusbar>\n </div>\n <div class=\"header total-price-vat\"><span [textContent]=\"transaction.totalPriceWithVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\"></div>\n <div class=\"tile-middle-middle\">\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"tile-bottom-middle order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"tile-bottom-right order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n </div>",
11030
11031
  encapsulation: i0.ViewEncapsulation.None
11031
11032
  },] }
11032
11033
  ];
@@ -17791,9 +17792,23 @@
17791
17792
  this.transactionService = transactionService;
17792
17793
  this.icons = Icon;
17793
17794
  this.lineSelected = new i0.EventEmitter();
17795
+ this.docBatchApplied = new i0.EventEmitter();
17794
17796
  this.getPurchasePortalLine = new getPurchasePortalLine.GetPurchasePortalLine();
17795
17797
  this.purchasePortalFilter = new purchasePortalFilters_bo.PurchasePortalFilters();
17796
17798
  }
17799
+ Object.defineProperty(TransactionConfirmationHistoryComponent.prototype, "isDocBatchSaved", {
17800
+ get: function () {
17801
+ return false;
17802
+ },
17803
+ set: function (data) {
17804
+ if (data === true) {
17805
+ this.getPurchasePortalLines();
17806
+ this.docBatchApplied.emit(false);
17807
+ }
17808
+ },
17809
+ enumerable: false,
17810
+ configurable: true
17811
+ });
17797
17812
  TransactionConfirmationHistoryComponent.prototype.showClass = function () {
17798
17813
  return true;
17799
17814
  };
@@ -17837,6 +17852,9 @@
17837
17852
  this.transactionService.purchasePortalLine[0].docKind = "IB";
17838
17853
  return [4 /*yield*/, this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0])];
17839
17854
  case 1:
17855
+ _a.sent();
17856
+ return [4 /*yield*/, this.getPurchasePortalLines()];
17857
+ case 2:
17840
17858
  _a.sent();
17841
17859
  return [2 /*return*/];
17842
17860
  }
@@ -17851,7 +17869,7 @@
17851
17869
  TransactionConfirmationHistoryComponent.decorators = [
17852
17870
  { type: i0.Component, args: [{
17853
17871
  selector: "co-transaction-confirmation-history",
17854
- template: "\n <div class=\"history-grid-wrapper\">\n <co-simple-grid (selectRow)=\"selectedLineDocBatchArray($event)\"\n *ngIf=\"transactionService.purchasePortalLine[0]\"\n [data]=\"transactionService.purchasePortalLine[0].docBatchArray\"\n [showToolbar]=\"true\"\n [rowsPerPage]=\"20\"\n [showDelete]=\"true\"\n (deleteRow)=\"deleteDocBatch($event)\"\n >\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.docDate | date:'dd MMM yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\" [field]=\"'docAmount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PRICE' | localize\" [field]=\"'confirmedPrice'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.docDateOrg | date:'dd MMM yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'REFERENCE' | localize\" [field]=\"'deliveryBatch'\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
17872
+ template: "\n <div class=\"history-grid-wrapper\">\n <co-simple-grid (selectRow)=\"selectedLineDocBatchArray($event)\"\n *ngIf=\"transactionService.purchasePortalLine[0]\"\n [data]=\"transactionService.purchasePortalLine[0].docBatchArray\"\n [showToolbar]=\"true\"\n [rowsPerPage]=\"20\"\n [showDelete]=\"true\"\n (deleteRow)=\"deleteDocBatch($event)\"\n >\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.docDate | date:'dd MMM yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\" [field]=\"'docAmount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PRICE' | localize\" [field]=\"'confirmedPrice'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.docDateOrg | date:'dd MMM yyyy'\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'REFERENCE' | localize\" [field]=\"'reference'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_BATCH' | localize\" [field]=\"'deliveryBatch'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'HISTORICAL' | localize\" [field]=\"'historical'\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
17855
17873
  encapsulation: i0.ViewEncapsulation.None
17856
17874
  },] }
17857
17875
  ];
@@ -17863,7 +17881,9 @@
17863
17881
  transactionLines: [{ type: i0.Input }],
17864
17882
  transactionId: [{ type: i0.Input }],
17865
17883
  transactionInfoNr: [{ type: i0.Input }],
17884
+ isDocBatchSaved: [{ type: i0.Input }],
17866
17885
  lineSelected: [{ type: i0.Output }],
17886
+ docBatchApplied: [{ type: i0.Output }],
17867
17887
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-confirmation-history",] }]
17868
17888
  };
17869
17889
 
@@ -17903,6 +17923,7 @@
17903
17923
  this.icons = Icon;
17904
17924
  this.showAddOrder = false;
17905
17925
  this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
17926
+ this.docBatchSaved = new i0.EventEmitter();
17906
17927
  }
17907
17928
  TransactionConfirmationDetailsComponent.prototype.showClass = function () {
17908
17929
  return true;
@@ -17911,19 +17932,28 @@
17911
17932
  this.showAddOrder = !this.showAddOrder;
17912
17933
  };
17913
17934
  TransactionConfirmationDetailsComponent.prototype.handleOkClick = function () {
17914
- if (this.newDocBatchArray.docAmount && this.newDocBatchArray.confirmedPrice) {
17915
- this.newDocBatchArray.docAmountOrg = 0;
17916
- this.newDocBatchArray.docDateOrg = new Date();
17917
- this.newDocBatchArray.deleteLine = "F";
17918
- this.newDocBatchArray.historical = "G";
17919
- this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
17920
- this.transactionService.purchasePortalLine[0].docKind = "IB";
17921
- this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0]);
17922
- this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
17923
- }
17924
- else {
17925
- return;
17926
- }
17935
+ return __awaiter(this, void 0, void 0, function () {
17936
+ return __generator(this, function (_a) {
17937
+ switch (_a.label) {
17938
+ case 0:
17939
+ if (!(this.newDocBatchArray.docAmount && this.newDocBatchArray.confirmedPrice)) return [3 /*break*/, 2];
17940
+ this.newDocBatchArray.docAmountOrg = 0;
17941
+ this.newDocBatchArray.docDateOrg = new Date();
17942
+ this.newDocBatchArray.deleteLine = "F";
17943
+ this.newDocBatchArray.historical = "G";
17944
+ this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
17945
+ this.transactionService.purchasePortalLine[0].docKind = "IB";
17946
+ return [4 /*yield*/, this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0])];
17947
+ case 1:
17948
+ _a.sent();
17949
+ this.docBatchSaved.emit(true);
17950
+ this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
17951
+ return [3 /*break*/, 3];
17952
+ case 2: return [2 /*return*/];
17953
+ case 3: return [2 /*return*/];
17954
+ }
17955
+ });
17956
+ });
17927
17957
  };
17928
17958
  return TransactionConfirmationDetailsComponent;
17929
17959
  }());
@@ -17931,7 +17961,10 @@
17931
17961
  { type: i0.Component, args: [{
17932
17962
  selector: "co-transaction-confirmation-details",
17933
17963
  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 >\n </co-input-date>\n <co-input-text class=\"details-input\"\n [(model)]=\"newDocBatchArray.confirmedPrice\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\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 ",
17934
- encapsulation: i0.ViewEncapsulation.None
17964
+ encapsulation: i0.ViewEncapsulation.None,
17965
+ providers: [
17966
+ corecomponents_v12.FormMasterService
17967
+ ]
17935
17968
  },] }
17936
17969
  ];
17937
17970
  TransactionConfirmationDetailsComponent.ctorParameters = function () { return [
@@ -17943,7 +17976,8 @@
17943
17976
  transactionInfoNr: [{ type: i0.Input }],
17944
17977
  testLines: [{ type: i0.Input }],
17945
17978
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-confirmation-details",] }],
17946
- newDocBatchArray: [{ type: i0.Input }]
17979
+ newDocBatchArray: [{ type: i0.Input }],
17980
+ docBatchSaved: [{ type: i0.Output }]
17947
17981
  };
17948
17982
 
17949
17983
  var DefaultOkCancelButtonsComponent = /** @class */ (function () {
@@ -18040,6 +18074,8 @@
18040
18074
  this.categories = TransactionTypeCategory;
18041
18075
  this.quantityToReceiveChange = new i0.EventEmitter();
18042
18076
  this.goodsReceiptStatus = new goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory();
18077
+ this.selectedLineDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
18078
+ this.isDocBatchSaved = false;
18043
18079
  this._transactionInfo = new transactionInfo_bo.TransactionInfo();
18044
18080
  }
18045
18081
  Object.defineProperty(TransactionLineSidePanelPurchaseComponent.prototype, "transactionInfo", {
@@ -18075,12 +18111,16 @@
18075
18111
  TransactionLineSidePanelPurchaseComponent.prototype.fillInputOnClick = function (data) {
18076
18112
  this.selectedLineDocBatchArray = data;
18077
18113
  };
18114
+ TransactionLineSidePanelPurchaseComponent.prototype.docBatchSaved = function (data) {
18115
+ console.log(data);
18116
+ this.isDocBatchSaved = data;
18117
+ };
18078
18118
  return TransactionLineSidePanelPurchaseComponent;
18079
18119
  }());
18080
18120
  TransactionLineSidePanelPurchaseComponent.decorators = [
18081
18121
  { type: i0.Component, args: [{
18082
18122
  selector: "co-transaction-line-side-panel-purchase",
18083
- 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 ></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 ></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-transaction-receiving-goods-details\n [transactionId]=\"transactionInfo.id\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"goodsReceiptStatus.quantityToReceive\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-details>\n <co-transaction-receiving-goods-history\n [transactionId]=\"transactionInfo.id\"\n [transactionLine]=\"transactionLine\"\n [goodsReceiptHistory]=\"goodsReceiptStatus.goodsReceiptHistory\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-history>\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 ",
18123
+ 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-receiving-goods-details\n [transactionId]=\"transactionInfo.id\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"goodsReceiptStatus.quantityToReceive\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-details>\n <co-transaction-receiving-goods-history\n [transactionId]=\"transactionInfo.id\"\n [transactionLine]=\"transactionLine\"\n [goodsReceiptHistory]=\"goodsReceiptStatus.goodsReceiptHistory\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-history>\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 ",
18084
18124
  encapsulation: i0.ViewEncapsulation.None
18085
18125
  },] }
18086
18126
  ];