@colijnit/transaction 12.1.66 → 12.1.68

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 +194 -152
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +58 -58
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +59 -59
  6. package/esm2015/lib/component/transaction/transaction.component.js +1 -1
  7. package/esm2015/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.js +18 -6
  8. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +7 -3
  9. package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.component.js +6 -3
  10. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-location-button.component.js +24 -8
  11. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +2 -2
  12. package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +4 -1
  13. package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +1 -4
  14. package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-order/transaction-purchase-order-filter-content-order.component.js +7 -3
  15. package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-order/transaction-sales-order-filter-content-order.component.js +6 -3
  16. package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.js +1 -1
  17. package/esm2015/lib/component/transaction-search/transaction-search.component.js +1 -1
  18. package/esm2015/lib/component/transaction-side-panel-edit-request-details/components/receive-goods-request.component.js +36 -30
  19. package/esm2015/lib/component/transaction-side-panel-edit-request-details/transaction-side-panel-edit-request-details.module.js +8 -3
  20. package/esm2015/lib/service/transaction.service.js +1 -1
  21. package/fesm2015/colijnit-transaction.js +146 -103
  22. package/fesm2015/colijnit-transaction.js.map +1 -1
  23. package/lib/component/transaction-confirmation-details/style/_layout.scss +4 -0
  24. package/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.d.ts +2 -1
  25. package/lib/component/transaction-confirmation-history/style/_layout.scss +4 -0
  26. package/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.d.ts +2 -0
  27. package/lib/component/transaction-header/transaction-header/transaction-header.component.d.ts +1 -0
  28. package/lib/component/transaction-line-fields/transaction-line-warehouse-location-button.component.d.ts +6 -2
  29. package/lib/component/transaction-line-side-panel/style/_layout.scss +5 -0
  30. package/lib/component/transaction-line-side-panel/style/_material-definition.scss +1 -0
  31. package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +1 -0
  32. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +5 -8
  33. package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +2 -3
  34. package/lib/component/transaction-side-panel-edit-request-details/components/receive-goods-request.component.d.ts +9 -6
  35. package/lib/component/transaction-side-panel-edit-request-details/style/_layout.scss +55 -16
  36. package/lib/component/transaction-side-panel-edit-request-details/style/_material-definition.scss +0 -1
  37. package/package.json +1 -1
@@ -16005,7 +16005,7 @@
16005
16005
  TransactionLineSidePanelComponent.decorators = [
16006
16006
  { type: i0.Component, args: [{
16007
16007
  selector: "co-transaction-line-side-panel",
16008
- template: "\n <div class=\"transaction-line-side-panel-wrapper\" *ngIf=\"show\" @showHideSidePanel>\n <icon (click)=\"handleCancelClick()\" [icon]=\"icons.Cancel\" class=\"close-button\"></icon>\n <div class=\"transaction-line-side-panel-header\">\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'DESCRIPTION'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.goodDescription\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.amount\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? ('OPEN' | localize) : ('PRICE' | localize)\"></span>\n <span class=\"side-panel-header-field\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)\"></span>\n </div>\n </div>\n <div class=\"transaction-line-side-panel-nav-bar\">\n <co-transaction-button-bar\n [selectedCategory]=\"activeCategory\"\n [transactionType]=\"transactionInfo.transactionKind\"\n (buttonClicked)=\"activeCategory = $event.category\"\n ></co-transaction-button-bar>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <ng-container [ngSwitch]=\"transactionInfo.transactionKind\">\n <ng-container *ngSwitchCase=\"transactionTypes.PurchaseOrder\">\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n (quantityToReceiveChange)=\"quantityToReceive = $event\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n <ng-container *ngSwitchCase=\"transactionTypes.SalesOrder\">\n <co-transaction-line-side-panel-sales\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-sales>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n </ng-container>\n </div>\n </div>\n ",
16008
+ template: "\n <div class=\"transaction-line-side-panel-wrapper\" *ngIf=\"show\" @showHideSidePanel>\n <icon (click)=\"handleCancelClick()\" [icon]=\"icons.Cancel\" class=\"close-button\"></icon>\n <div class=\"transaction-line-side-panel-header\">\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'DESCRIPTION'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.goodDescription\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.amount\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item hidden\">\n <span class=\"side-panel-header-label\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? ('OPEN' | localize) : ('PRICE' | localize)\"></span>\n <span class=\"side-panel-header-field\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)\"></span>\n </div>\n </div>\n <div class=\"transaction-line-side-panel-nav-bar\">\n <co-transaction-button-bar\n [selectedCategory]=\"activeCategory\"\n [transactionType]=\"transactionInfo.transactionKind\"\n (buttonClicked)=\"activeCategory = $event.category\"\n ></co-transaction-button-bar>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <ng-container [ngSwitch]=\"transactionInfo.transactionKind\">\n <ng-container *ngSwitchCase=\"transactionTypes.PurchaseOrder\">\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n (quantityToReceiveChange)=\"quantityToReceive = $event\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n <ng-container *ngSwitchCase=\"transactionTypes.SalesOrder\">\n <co-transaction-line-side-panel-sales\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-sales>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n </ng-container>\n </div>\n </div>\n ",
16009
16009
  animations: [
16010
16010
  animations.trigger("showHideSidePanel", [
16011
16011
  animations.state("void", animations.style({ transform: 'translateX(100%)' })),
@@ -16144,6 +16144,7 @@
16144
16144
  function TransactionHeaderComponent() {
16145
16145
  this.icons = Icon;
16146
16146
  this.relation = new customerFullObject_bo.CustomerFullObject();
16147
+ this.isPurchaseOrder = false;
16147
16148
  this._transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
16148
16149
  }
16149
16150
  Object.defineProperty(TransactionHeaderComponent.prototype, "transaction", {
@@ -16153,6 +16154,7 @@
16153
16154
  set: function (value) {
16154
16155
  if (value) {
16155
16156
  this._transaction = value;
16157
+ this.isPurchaseOrder = this._transaction.transactionInfo.transactionKind === transactionKind_enum.TransactionKind.PurchaseOrder;
16156
16158
  }
16157
16159
  },
16158
16160
  enumerable: false,
@@ -16166,7 +16168,7 @@
16166
16168
  TransactionHeaderComponent.decorators = [
16167
16169
  { type: i0.Component, args: [{
16168
16170
  selector: "co-transaction-header",
16169
- template: "\n <div class=\"transaction-header-wrapper\">\n <co-carousel>\n <co-transaction-header-relation #carouselItem [relation]=\"relation\"></co-transaction-header-relation>\n <div class=\"transaction-header-divider\">&nbsp;</div>\n <co-transaction-header-order #carouselItem [transaction]=\"transaction\"></co-transaction-header-order>\n <div class=\"transaction-header-divider\">&nbsp;</div>\n <co-transaction-header-payment #carouselItem [transaction]=\"transaction\"></co-transaction-header-payment>\n <div class=\"transaction-header-divider\">&nbsp;</div>\n <co-transaction-header-delivery #carouselItem [transaction]=\"transaction\"></co-transaction-header-delivery>\n </co-carousel>\n </div>\n ",
16171
+ template: "\n <div class=\"transaction-header-wrapper\">\n <co-carousel>\n <co-transaction-header-relation #carouselItem [relation]=\"relation\"></co-transaction-header-relation>\n <div class=\"transaction-header-divider\" *ngIf=\"!isPurchaseOrder\">&nbsp;</div>\n <co-transaction-header-order *ngIf=\"!isPurchaseOrder\" #carouselItem [transaction]=\"transaction\"></co-transaction-header-order>\n <div class=\"transaction-header-divider\">&nbsp;</div>\n <co-transaction-header-payment #carouselItem [transaction]=\"transaction\"></co-transaction-header-payment>\n <div class=\"transaction-header-divider\">&nbsp;</div>\n <co-transaction-header-delivery #carouselItem [transaction]=\"transaction\"></co-transaction-header-delivery>\n </co-carousel>\n </div>\n ",
16170
16172
  encapsulation: i0.ViewEncapsulation.None
16171
16173
  },] }
16172
16174
  ];
@@ -18249,9 +18251,6 @@
18249
18251
  TransactionReceivingGoodsHistoryComponent.prototype.showClass = function () {
18250
18252
  return true;
18251
18253
  };
18252
- TransactionReceivingGoodsHistoryComponent.prototype.ngAfterViewInit = function () {
18253
- this.reloadReceivingGoodsHistory.next();
18254
- };
18255
18254
  TransactionReceivingGoodsHistoryComponent.prototype.handleDeleteSelectedRow = function (row) {
18256
18255
  var _this = this;
18257
18256
  if (row && row.type !== 'correction') {
@@ -18515,6 +18514,7 @@
18515
18514
  this.docBatchApplied = new i0.EventEmitter();
18516
18515
  this.getPurchasePortalLine = new getPurchasePortalLine.GetPurchasePortalLine();
18517
18516
  this.purchasePortalFilter = new purchasePortalFilters_bo.PurchasePortalFilters();
18517
+ this.filteredDocBatchArray = [];
18518
18518
  }
18519
18519
  Object.defineProperty(TransactionConfirmationHistoryComponent.prototype, "isDocBatchSaved", {
18520
18520
  get: function () {
@@ -18546,6 +18546,9 @@
18546
18546
  this.getPurchasePortalLine.filterObject = this.purchasePortalFilter;
18547
18547
  this.transactionService.getPurchasePortalLines(this.getPurchasePortalLine).then(function (result) {
18548
18548
  _this.transactionService.purchasePortalLine = result;
18549
+ _this.transactionService.purchasePortalLine.forEach(function (element) {
18550
+ _this.filteredDocBatchArray = element.docBatchArray.filter(function (value) { return value.historical === 'G'; });
18551
+ });
18549
18552
  });
18550
18553
  return [2 /*return*/];
18551
18554
  });
@@ -18589,7 +18592,7 @@
18589
18592
  TransactionConfirmationHistoryComponent.decorators = [
18590
18593
  { type: i0.Component, args: [{
18591
18594
  selector: "co-transaction-confirmation-history",
18592
- 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 ",
18595
+ template: "\n <div class=\"history-grid-wrapper\">\n <co-simple-grid (selectRow)=\"selectedLineDocBatchArray($event)\"\n *ngIf=\"transactionService.purchasePortalLine[0]\"\n [data]=\"filteredDocBatchArray\"\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 ",
18593
18596
  encapsulation: i0.ViewEncapsulation.None
18594
18597
  },] }
18595
18598
  ];
@@ -18643,6 +18646,7 @@
18643
18646
  this.icons = Icon;
18644
18647
  this.showAddOrder = false;
18645
18648
  this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
18649
+ this.isEditing = false;
18646
18650
  this.docBatchSaved = new i0.EventEmitter();
18647
18651
  }
18648
18652
  TransactionConfirmationDetailsComponent.prototype.showClass = function () {
@@ -18657,12 +18661,14 @@
18657
18661
  switch (_a.label) {
18658
18662
  case 0:
18659
18663
  if (!(this.newDocBatchArray.docAmount && this.newDocBatchArray.confirmedPrice)) return [3 /*break*/, 2];
18660
- this.newDocBatchArray.docAmountOrg = 0;
18661
- this.newDocBatchArray.docDateOrg = new Date();
18662
18664
  this.newDocBatchArray.deleteLine = "F";
18663
18665
  this.newDocBatchArray.historical = "G";
18664
- this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
18666
+ if (!this.newDocBatchArray.docDateOrg) {
18667
+ this.newDocBatchArray.docDateOrg = this.newDocBatchArray.docDate;
18668
+ this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
18669
+ }
18665
18670
  this.transactionService.purchasePortalLine[0].docKind = "IB";
18671
+ console.log(this.transactionService.purchasePortalLine[0]);
18666
18672
  return [4 /*yield*/, this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0])];
18667
18673
  case 1:
18668
18674
  _a.sent();
@@ -18675,12 +18681,16 @@
18675
18681
  });
18676
18682
  });
18677
18683
  };
18684
+ TransactionConfirmationDetailsComponent.prototype.handleCancelClick = function () {
18685
+ this.newDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
18686
+ this.isEditing = false;
18687
+ };
18678
18688
  return TransactionConfirmationDetailsComponent;
18679
18689
  }());
18680
18690
  TransactionConfirmationDetailsComponent.decorators = [
18681
18691
  { type: i0.Component, args: [{
18682
18692
  selector: "co-transaction-confirmation-details",
18683
- 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 ",
18693
+ 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=\"\" [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 ",
18684
18694
  encapsulation: i0.ViewEncapsulation.None,
18685
18695
  providers: [
18686
18696
  corecomponents_v12.FormMasterService
@@ -18694,9 +18704,9 @@
18694
18704
  TransactionConfirmationDetailsComponent.propDecorators = {
18695
18705
  transactionLines: [{ type: i0.Input }],
18696
18706
  transactionInfoNr: [{ type: i0.Input }],
18697
- testLines: [{ type: i0.Input }],
18698
18707
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-confirmation-details",] }],
18699
18708
  newDocBatchArray: [{ type: i0.Input }],
18709
+ isEditing: [{ type: i0.Input }],
18700
18710
  docBatchSaved: [{ type: i0.Output }]
18701
18711
  };
18702
18712
 
@@ -18796,6 +18806,7 @@
18796
18806
  this.goodsReceiptStatus = new goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory();
18797
18807
  this.selectedLineDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
18798
18808
  this.isDocBatchSaved = false;
18809
+ this.editingMode = false;
18799
18810
  this._transactionInfo = new transactionInfo_bo.TransactionInfo();
18800
18811
  }
18801
18812
  Object.defineProperty(TransactionLineSidePanelPurchaseComponent.prototype, "transactionInfo", {
@@ -18830,6 +18841,7 @@
18830
18841
  };
18831
18842
  TransactionLineSidePanelPurchaseComponent.prototype.fillInputOnClick = function (data) {
18832
18843
  this.selectedLineDocBatchArray = data;
18844
+ this.editingMode = true;
18833
18845
  };
18834
18846
  TransactionLineSidePanelPurchaseComponent.prototype.docBatchSaved = function (data) {
18835
18847
  this.isDocBatchSaved = data;
@@ -18839,7 +18851,7 @@
18839
18851
  TransactionLineSidePanelPurchaseComponent.decorators = [
18840
18852
  { type: i0.Component, args: [{
18841
18853
  selector: "co-transaction-line-side-panel-purchase",
18842
- 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 ",
18854
+ 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 ",
18843
18855
  encapsulation: i0.ViewEncapsulation.None
18844
18856
  },] }
18845
18857
  ];
@@ -19099,37 +19111,37 @@
19099
19111
  this._dialogService = _dialogService;
19100
19112
  this._receiveGoodsService = _receiveGoodsService;
19101
19113
  this.icons = Icon;
19114
+ this.transactionKind = transactionKind_enum.TransactionKind;
19115
+ this.transactionTypeCategory = TransactionTypeCategory;
19102
19116
  this.reloadReceivingGoodsHistory = new i0.EventEmitter();
19103
19117
  this.receiptDetails = new purchaseOrderLineReceiptDetails_bo.PurchaseOrderLineReceiptDetails();
19104
19118
  this.request = new receiveGoodsForPurchaseOrderRequest_bo.ReceiveGoodsForPurchaseOrderRequest();
19105
19119
  this.saveButtonDisabled = false;
19106
- this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
19107
19120
  this.readonly = false;
19108
19121
  this._subscriptions = [];
19109
- this.request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
19110
- var timeElapsed = Date.now();
19111
- this.request.receivedDate = new Date(timeElapsed);
19112
19122
  }
19113
- Object.defineProperty(ReceiveGoodsRequestComponent.prototype, "amountLeftToReceive", {
19123
+ Object.defineProperty(ReceiveGoodsRequestComponent.prototype, "transactionLine", {
19114
19124
  get: function () {
19115
- return this._amountLeftToReceive;
19125
+ return this._transactionLine;
19116
19126
  },
19117
19127
  set: function (value) {
19118
- this._amountLeftToReceive = value;
19119
- this.receiptDetails.quantityToReceive = value;
19128
+ this._transactionLine = value;
19129
+ this.readonly = this._transactionLine.hasInvoices;
19130
+ this.receiptDetails.warehouseNr = value.warehouseNumber;
19131
+ this.receiptDetails.lineNr = value.lineNr;
19120
19132
  },
19121
19133
  enumerable: false,
19122
19134
  configurable: true
19123
19135
  });
19124
- Object.defineProperty(ReceiveGoodsRequestComponent.prototype, "transactionLine", {
19136
+ Object.defineProperty(ReceiveGoodsRequestComponent.prototype, "amountLeftToReceive", {
19125
19137
  get: function () {
19126
- return this._transactionLine;
19138
+ return this._amountLeftToReceive;
19127
19139
  },
19128
19140
  set: function (value) {
19129
- this._transactionLine = value;
19130
- this.readonly = this._transactionLine.hasInvoices;
19131
- this.receiptDetails.warehouseNr = value.warehouseNumber;
19132
- this.receiptDetails.lineNr = value.lineNr;
19141
+ this._amountLeftToReceive = value;
19142
+ if (!this.returnStockMode()) {
19143
+ this.receiptDetails.quantityToReceive = value;
19144
+ }
19133
19145
  },
19134
19146
  enumerable: false,
19135
19147
  configurable: true
@@ -19142,10 +19154,16 @@
19142
19154
  this._subscriptions.push(this._receiveGoodsService.returnArticleSelected.subscribe(function (availableStock) {
19143
19155
  _this._handleReturnStock(availableStock);
19144
19156
  }));
19157
+ this.request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
19158
+ var timeElapsed = Date.now();
19159
+ this.request.receivedDate = new Date(timeElapsed);
19145
19160
  };
19146
19161
  ReceiveGoodsRequestComponent.prototype.ngOnDestroy = function () {
19147
19162
  this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
19148
19163
  };
19164
+ ReceiveGoodsRequestComponent.prototype.ngAfterViewInit = function () {
19165
+ this.reloadReceivingGoodsHistory.next();
19166
+ };
19149
19167
  ReceiveGoodsRequestComponent.prototype.submit = function () {
19150
19168
  return this._formMaster.submitSlaves();
19151
19169
  };
@@ -19175,13 +19193,6 @@
19175
19193
  this.saveButtonDisabled = false;
19176
19194
  }
19177
19195
  };
19178
- ReceiveGoodsRequestComponent.prototype.openWarehouseLocationDialog = function () {
19179
- var _this = this;
19180
- if (!this.returnStockMode()) {
19181
- this._dialogService.showWarehouseLocation(this.receiptDetails.warehouseNr, true, true, true, this.transactionLine)
19182
- .then(function () { return _this.receiptDetails.locationNr = _this.transactionLine.locationNr; });
19183
- }
19184
- };
19185
19196
  ReceiveGoodsRequestComponent.prototype.returnStockMode = function () {
19186
19197
  return this.transactionLine.amount < 0;
19187
19198
  };
@@ -19191,6 +19202,7 @@
19191
19202
  this.receiptDetails.quantityToReceive = this.returnMaxToReceive;
19192
19203
  this.receiptDetails.warehouseNr = availableStock.warehouseNumber;
19193
19204
  this.receiptDetails.locationNr = availableStock.locationNumber;
19205
+ this.selectedLocation = this.receiptDetails.locationNr;
19194
19206
  this.receiptDetails.serialNr = availableStock.serialNumber;
19195
19207
  this.receiptDetails.batchNr = availableStock.batchNumber;
19196
19208
  this.receiptDetails.lineNr = this.transactionLine.lineNr;
@@ -19200,7 +19212,7 @@
19200
19212
  ReceiveGoodsRequestComponent.decorators = [
19201
19213
  { type: i0.Component, args: [{
19202
19214
  selector: "co-receive-goods-request",
19203
- template: "\n <co-form>\n <div class=\"details-header\" [textContent]=\"returnStockMode() ? ('RETURN_DETAILS' | localize | uppercase) : ('RECEIPT_DETAILS' | localize | uppercase)\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"returnStockMode() ? returnMaxToReceive : amountLeftToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || readonly\"\n [required]=\"true\"\n [type]=\"'number'\"\n [min]=\"1\"\n [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly || returnStockMode()\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined || returnStockMode()\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper\" [class.clickable]=\"!returnStockMode()\" (click)=\"openWarehouseLocationDialog()\">\n <span *ngIf=\"!receiptDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>\n <co-icon *ngIf=\"receiptDetails.locationNr\" [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <div [textContent]=\"receiptDetails.locationNr ? receiptDetails.locationNr : ('LOCATION' | localize)\"></div>\n </div>\n <co-input-text class=\"details-input\"\n *ngIf=\"!returnStockMode()\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-date class=\"details-input\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n\n <div class=\"commit-button-wrapper\">\n <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\" [class.disabled]=\"saveButtonDisabled || amountLeftToReceive === 0\">\n <span class=\"commit-text\" [textContent]=\"returnStockMode() ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>\n </div>\n </div>\n ",
19215
+ template: "\n <co-form>\n <div class=\"header-wrapper\">\n <div class=\"details-header\" [textContent]=\"returnStockMode() ? ('RETURN_DETAILS' | localize | uppercase) : ('RECEIPT_DETAILS' | localize | uppercase)\"></div>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\" [transaction]=\"transactionLine\" [transactionKind]=\"transactionKind.SalesOrder\" [transactionTypeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [max]=\"returnStockMode() ? returnMaxToReceive : amountLeftToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [min]=\"1\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive\"\n [required]=\"true\"\n ></co-input-number-picker>\n </div>\n <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly || returnStockMode()\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined || returnStockMode()\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper\">\n <!-- <span *ngIf=\"!receiptDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>-->\n <co-transaction-line-warehouse-location-button [locationNr]=\"selectedLocation\" [readonly]=\"returnStockMode() || receiptDetails.quantityToReceive === 0\" [line]=\"transactionLine\" (locationSelected)=\"receiptDetails.locationNr = $event\"></co-transaction-line-warehouse-location-button>\n </div>\n <co-input-text class=\"details-input\"\n *ngIf=\"!returnStockMode()\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-date class=\"details-input\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n\n <div class=\"commit-button-wrapper\">\n <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\" [class.disabled]=\"saveButtonDisabled || amountLeftToReceive === 0\">\n <span class=\"commit-text\" [textContent]=\"returnStockMode() ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>\n </div>\n </div>\n ",
19204
19216
  providers: [
19205
19217
  corecomponents_v12.FormMasterService
19206
19218
  ],
@@ -19216,12 +19228,89 @@
19216
19228
  { type: TransactionReceiveGoodsService }
19217
19229
  ]; };
19218
19230
  ReceiveGoodsRequestComponent.propDecorators = {
19219
- amountLeftToReceive: [{ type: i0.Input }],
19220
19231
  transactionLine: [{ type: i0.Input }],
19232
+ amountLeftToReceive: [{ type: i0.Input }],
19221
19233
  reloadReceivingGoodsHistory: [{ type: i0.Output }],
19222
19234
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
19223
19235
  };
19224
19236
 
19237
+ var TransactionLineWarehouseLocationButtonComponent = /** @class */ (function () {
19238
+ function TransactionLineWarehouseLocationButtonComponent(iconCacheService, _dialogService) {
19239
+ this.iconCacheService = iconCacheService;
19240
+ this._dialogService = _dialogService;
19241
+ this.icons = Icon;
19242
+ this.readonly = false;
19243
+ this.locationSelected = new i0.EventEmitter();
19244
+ }
19245
+ TransactionLineWarehouseLocationButtonComponent.prototype.showClass = function () {
19246
+ return true;
19247
+ };
19248
+ TransactionLineWarehouseLocationButtonComponent.prototype.openWarehouseLocationDialog = function () {
19249
+ return __awaiter(this, void 0, void 0, function () {
19250
+ var response;
19251
+ return __generator(this, function (_a) {
19252
+ switch (_a.label) {
19253
+ case 0:
19254
+ if (!!this.readonly) return [3 /*break*/, 2];
19255
+ return [4 /*yield*/, this._dialogService.showWarehouseLocation(this.line.warehouseNumber, false, true, true, this.line)];
19256
+ case 1:
19257
+ response = _a.sent();
19258
+ if (response && response.output) {
19259
+ this.locationNr = response.output;
19260
+ if (this.line instanceof transactionLineInfo_bo.TransactionLineInfo) {
19261
+ this.locationSelected.next(response.output);
19262
+ }
19263
+ else {
19264
+ this.line.locationNr = response.output;
19265
+ }
19266
+ }
19267
+ _a.label = 2;
19268
+ case 2: return [2 /*return*/];
19269
+ }
19270
+ });
19271
+ });
19272
+ };
19273
+ return TransactionLineWarehouseLocationButtonComponent;
19274
+ }());
19275
+ TransactionLineWarehouseLocationButtonComponent.decorators = [
19276
+ { type: i0.Component, args: [{
19277
+ selector: "co-transaction-line-warehouse-location-button",
19278
+ template: "\n <div class=\"transaction-line-button\" [class.no-pointer]=\"readonly\" (click)=\"openWarehouseLocationDialog()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"locationNr ? locationNr : '-'\"></span>\n </div>\n ",
19279
+ encapsulation: i0.ViewEncapsulation.None
19280
+ },] }
19281
+ ];
19282
+ TransactionLineWarehouseLocationButtonComponent.ctorParameters = function () { return [
19283
+ { type: IconCacheService },
19284
+ { type: DialogService }
19285
+ ]; };
19286
+ TransactionLineWarehouseLocationButtonComponent.propDecorators = {
19287
+ line: [{ type: i0.Input }],
19288
+ locationNr: [{ type: i0.Input }],
19289
+ readonly: [{ type: i0.Input }],
19290
+ locationSelected: [{ type: i0.Output }],
19291
+ showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-warehouse-location-button",] }]
19292
+ };
19293
+
19294
+ var TransactionLineWarehouseLocationButtonModule = /** @class */ (function () {
19295
+ function TransactionLineWarehouseLocationButtonModule() {
19296
+ }
19297
+ return TransactionLineWarehouseLocationButtonModule;
19298
+ }());
19299
+ TransactionLineWarehouseLocationButtonModule.decorators = [
19300
+ { type: i0.NgModule, args: [{
19301
+ imports: [
19302
+ common.CommonModule,
19303
+ corecomponents_v12.IconModule
19304
+ ],
19305
+ declarations: [
19306
+ TransactionLineWarehouseLocationButtonComponent
19307
+ ],
19308
+ exports: [
19309
+ TransactionLineWarehouseLocationButtonComponent
19310
+ ]
19311
+ },] }
19312
+ ];
19313
+
19225
19314
  var TransactionSidePanelEditRequestDetailsModule = /** @class */ (function () {
19226
19315
  function TransactionSidePanelEditRequestDetailsModule() {
19227
19316
  }
@@ -19235,7 +19324,10 @@
19235
19324
  corecomponents_v12.InputTextModule,
19236
19325
  PipeModule,
19237
19326
  corecomponents_v12.IconModule,
19238
- corecomponents_v12.InputDatePickerModule
19327
+ corecomponents_v12.InputDatePickerModule,
19328
+ TransactionLineWarehouseLocationButtonModule,
19329
+ corecomponents_v12.InputNumberPickerModule,
19330
+ TransactionLineStatusbarModule
19239
19331
  ],
19240
19332
  declarations: [
19241
19333
  TransactionSidePanelEditRequestDetailsComponent,
@@ -20861,60 +20953,6 @@
20861
20953
  },] }
20862
20954
  ];
20863
20955
 
20864
- var TransactionLineWarehouseLocationButtonComponent = /** @class */ (function () {
20865
- function TransactionLineWarehouseLocationButtonComponent(iconCacheService, _dialogService) {
20866
- this.iconCacheService = iconCacheService;
20867
- this._dialogService = _dialogService;
20868
- this.icons = Icon;
20869
- this.readonly = false;
20870
- }
20871
- TransactionLineWarehouseLocationButtonComponent.prototype.showClass = function () {
20872
- return true;
20873
- };
20874
- TransactionLineWarehouseLocationButtonComponent.prototype.openWarehouseLocationDialog = function (line) {
20875
- if (!this.readonly) {
20876
- this._dialogService.showWarehouseLocation(line.warehouseNumber, true, true, true, line);
20877
- }
20878
- };
20879
- return TransactionLineWarehouseLocationButtonComponent;
20880
- }());
20881
- TransactionLineWarehouseLocationButtonComponent.decorators = [
20882
- { type: i0.Component, args: [{
20883
- selector: "co-transaction-line-warehouse-location-button",
20884
- template: "\n <div class=\"transaction-line-button\" [class.no-pointer]=\"readonly\" (click)=\"openWarehouseLocationDialog(line)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.locationNr ? line.locationNr : '-'\"></span>\n </div>\n ",
20885
- encapsulation: i0.ViewEncapsulation.None
20886
- },] }
20887
- ];
20888
- TransactionLineWarehouseLocationButtonComponent.ctorParameters = function () { return [
20889
- { type: IconCacheService },
20890
- { type: DialogService }
20891
- ]; };
20892
- TransactionLineWarehouseLocationButtonComponent.propDecorators = {
20893
- line: [{ type: i0.Input }],
20894
- readonly: [{ type: i0.Input }],
20895
- showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-warehouse-location-button",] }]
20896
- };
20897
-
20898
- var TransactionLineWarehouseLocationButtonModule = /** @class */ (function () {
20899
- function TransactionLineWarehouseLocationButtonModule() {
20900
- }
20901
- return TransactionLineWarehouseLocationButtonModule;
20902
- }());
20903
- TransactionLineWarehouseLocationButtonModule.decorators = [
20904
- { type: i0.NgModule, args: [{
20905
- imports: [
20906
- common.CommonModule,
20907
- corecomponents_v12.IconModule
20908
- ],
20909
- declarations: [
20910
- TransactionLineWarehouseLocationButtonComponent
20911
- ],
20912
- exports: [
20913
- TransactionLineWarehouseLocationButtonComponent
20914
- ]
20915
- },] }
20916
- ];
20917
-
20918
20956
  var TransactionReceivedGoodsGridModule = /** @class */ (function () {
20919
20957
  function TransactionReceivedGoodsGridModule() {
20920
20958
  }
@@ -22744,7 +22782,7 @@
22744
22782
  _this.relationService = relationService;
22745
22783
  _this.purchasePersonsFields = { text: "name", value: "relationId" };
22746
22784
  _this.tagsFields = { text: "description", value: "tagValueId" };
22747
- _this.branchFields = { text: "description", value: "relationId" };
22785
+ _this.branchFields = { text: "familyName", value: "relationId" };
22748
22786
  _this.onHoldCodeFields = { text: "description", value: "onHoldCode" };
22749
22787
  _this.commissionCodeFields = { text: "description", value: "code" };
22750
22788
  return _this;
@@ -22783,7 +22821,9 @@
22783
22821
  //Branches
22784
22822
  TransactionPurchaseOrderFilterContentOrderComponent.prototype._setBranches = function () {
22785
22823
  var _this = this;
22786
- this.relationService.getBranches().then(function (branches) {
22824
+ var request = new relationRequest.RelationRequest();
22825
+ request.relationType = relationKind_enum$1.RelationKind.Branch;
22826
+ this.relationService.getRelationListObjects(request).then(function (branches) {
22787
22827
  _this.branches = new FilterViewmodel(branches, _this.branchFields).filterItems;
22788
22828
  });
22789
22829
  };
@@ -23709,7 +23749,7 @@
23709
23749
  _this.relationService = relationService;
23710
23750
  _this.salesPersonsFields = { text: "name", value: "relationId" };
23711
23751
  _this.tagsFields = { text: "description", value: "tagValueId" };
23712
- _this.branchFields = { text: "description", value: "relationId" };
23752
+ _this.branchFields = { text: "familyName", value: "relationId" };
23713
23753
  _this.onHoldCodeFields = { text: "description", value: "onHoldCode" };
23714
23754
  _this.commissionCodeFields = { text: "description", value: "code" };
23715
23755
  _this.customerGroupFields = { text: "naam", value: "groepsnummer" };
@@ -23760,7 +23800,9 @@
23760
23800
  //Branches
23761
23801
  TransactionSalesOrderFilterContentOrderComponent.prototype._setBranches = function () {
23762
23802
  var _this = this;
23763
- this.relationService.getBranches().then(function (branches) {
23803
+ var request = new relationRequest.RelationRequest();
23804
+ request.relationType = relationKind_enum$1.RelationKind.Branch;
23805
+ this.relationService.getRelationListObjects(request).then(function (branches) {
23764
23806
  _this.branches = new FilterViewmodel(branches, _this.branchFields).filterItems;
23765
23807
  });
23766
23808
  };
@@ -24159,66 +24201,66 @@
24159
24201
  exports["ɵhr"] = TransactionAvailableStockGridModule;
24160
24202
  exports["ɵhs"] = TransactionAvailableStockGridComponent;
24161
24203
  exports["ɵht"] = TransactionSidePanelEditRequestDetailsModule;
24162
- exports["ɵhu"] = TransactionSidePanelEditRequestDetailsComponent;
24163
- exports["ɵhv"] = AllocationRequestComponent;
24164
- exports["ɵhw"] = ReceiveGoodsRequestComponent;
24165
- exports["ɵhx"] = ArticleService;
24166
- exports["ɵhy"] = TransactionLineSidePanelPurchaseComponent;
24167
- exports["ɵhz"] = TransactionLineSidePanelSalesModule;
24204
+ exports["ɵhu"] = TransactionLineWarehouseLocationButtonModule;
24205
+ exports["ɵhv"] = TransactionLineWarehouseLocationButtonComponent;
24206
+ exports["ɵhw"] = TransactionSidePanelEditRequestDetailsComponent;
24207
+ exports["ɵhx"] = AllocationRequestComponent;
24208
+ exports["ɵhy"] = ReceiveGoodsRequestComponent;
24209
+ exports["ɵhz"] = ArticleService;
24168
24210
  exports["ɵi"] = BusinessObjectCacheManagerService;
24169
- exports["ɵia"] = TransactionAllocateGoodsHistoryModule;
24170
- exports["ɵib"] = TransactionAllocateGoodsHistoryComponent;
24171
- exports["ɵic"] = TransactionLineSidePanelSalesComponent;
24172
- exports["ɵid"] = TransactionLineSidePanelComponent;
24173
- exports["ɵie"] = DynamicBaseComponent;
24174
- exports["ɵif"] = TransactionLineActionButtonsModule;
24175
- exports["ɵig"] = TransactionArticleTextOverviewModule;
24176
- exports["ɵih"] = TransactionArticleTextOverviewComponent;
24177
- exports["ɵii"] = TransactionLineActionButtonsComponent;
24178
- exports["ɵij"] = TransactionBaseGridComponent;
24179
- exports["ɵik"] = TransactionGridBaseComponent;
24180
- exports["ɵil"] = DialogTransactionLineCommissionCodeModule;
24181
- exports["ɵim"] = DialogTransactionLineCommissionCodeComponent;
24182
- exports["ɵin"] = DialogTransactionLineBaseComponent;
24183
- exports["ɵio"] = DialogTransactionLineWarehouseModule;
24184
- exports["ɵip"] = DialogTransactionLineWarehouseComponent;
24185
- exports["ɵiq"] = DialogTransactionLineWarehouseCcModule;
24186
- exports["ɵir"] = DialogTransactionLineWarehouseCcComponent;
24187
- exports["ɵis"] = DialogTransactionLineDeliveryMethodModule;
24188
- exports["ɵit"] = DialogTransactionLineDeliveryMethodComponent;
24189
- exports["ɵiu"] = DialogTransactionLineVatModule;
24190
- exports["ɵiv"] = DialogTransactionLineVatComponent;
24191
- exports["ɵiw"] = DialogTransactionLineDiscountModule;
24192
- exports["ɵix"] = DialogTransactionLinePriceListModule;
24193
- exports["ɵiy"] = DialogTransactionLinePriceListComponent;
24194
- exports["ɵiz"] = DialogTransactionLineDiscountComponent;
24211
+ exports["ɵia"] = TransactionLineSidePanelPurchaseComponent;
24212
+ exports["ɵib"] = TransactionLineSidePanelSalesModule;
24213
+ exports["ɵic"] = TransactionAllocateGoodsHistoryModule;
24214
+ exports["ɵid"] = TransactionAllocateGoodsHistoryComponent;
24215
+ exports["ɵie"] = TransactionLineSidePanelSalesComponent;
24216
+ exports["ɵif"] = TransactionLineSidePanelComponent;
24217
+ exports["ɵig"] = DynamicBaseComponent;
24218
+ exports["ɵih"] = TransactionLineActionButtonsModule;
24219
+ exports["ɵii"] = TransactionArticleTextOverviewModule;
24220
+ exports["ɵij"] = TransactionArticleTextOverviewComponent;
24221
+ exports["ɵik"] = TransactionLineActionButtonsComponent;
24222
+ exports["ɵil"] = TransactionBaseGridComponent;
24223
+ exports["ɵim"] = TransactionGridBaseComponent;
24224
+ exports["ɵin"] = DialogTransactionLineCommissionCodeModule;
24225
+ exports["ɵio"] = DialogTransactionLineCommissionCodeComponent;
24226
+ exports["ɵip"] = DialogTransactionLineBaseComponent;
24227
+ exports["ɵiq"] = DialogTransactionLineWarehouseModule;
24228
+ exports["ɵir"] = DialogTransactionLineWarehouseComponent;
24229
+ exports["ɵis"] = DialogTransactionLineWarehouseCcModule;
24230
+ exports["ɵit"] = DialogTransactionLineWarehouseCcComponent;
24231
+ exports["ɵiu"] = DialogTransactionLineDeliveryMethodModule;
24232
+ exports["ɵiv"] = DialogTransactionLineDeliveryMethodComponent;
24233
+ exports["ɵiw"] = DialogTransactionLineVatModule;
24234
+ exports["ɵix"] = DialogTransactionLineVatComponent;
24235
+ exports["ɵiy"] = DialogTransactionLineDiscountModule;
24236
+ exports["ɵiz"] = DialogTransactionLinePriceListModule;
24195
24237
  exports["ɵj"] = CacheField;
24196
- exports["ɵja"] = TransactionLinesGridComponent;
24197
- exports["ɵjb"] = DiscountModule;
24198
- exports["ɵjc"] = DiscountComponent;
24199
- exports["ɵjd"] = TransactionQuickAccessOverviewModule;
24200
- exports["ɵje"] = DialogCatalogModule;
24201
- exports["ɵjf"] = DialogCatalogComponent;
24202
- exports["ɵjg"] = TransactionQuickAccessOverviewComponent;
24203
- exports["ɵjh"] = TransactionQuickAccessOrderDeliveryModule;
24204
- exports["ɵji"] = TransactionSendButtonDialogModule;
24205
- exports["ɵjj"] = TransactionSendButtonDialogComponent;
24206
- exports["ɵjk"] = TransactionQuickAccessOrderDeliveryComponent;
24207
- exports["ɵjl"] = TransactionOrderDeliveryService;
24208
- exports["ɵjm"] = TransactionQuickAccessOrderPurchaseModule;
24209
- exports["ɵjn"] = TransactionQuickAccessOrderPurchaseComponent;
24210
- exports["ɵjo"] = TransactionQuickAccessGoodsAllocationModule;
24211
- exports["ɵjp"] = TransactionQuickAccessGoodsAllocationComponent;
24212
- exports["ɵjq"] = TransactionAllocateGoodsService;
24213
- exports["ɵjr"] = TransactionOrderConfirmationGridModule;
24214
- exports["ɵjs"] = TransactionOrderConfirmationGridComponent;
24215
- exports["ɵjt"] = TransactionReceivedGoodsGridModule;
24216
- exports["ɵju"] = DialogTransactionLineWarehouseLocationModule;
24217
- exports["ɵjv"] = TransactionLineWarehouseLocationModule;
24218
- exports["ɵjw"] = TransactionLineWarehouseLocationComponent;
24219
- exports["ɵjx"] = DialogTransactionLineWarehouseLocationComponent;
24220
- exports["ɵjy"] = TransactionLineWarehouseLocationButtonModule;
24221
- exports["ɵjz"] = TransactionLineWarehouseLocationButtonComponent;
24238
+ exports["ɵja"] = DialogTransactionLinePriceListComponent;
24239
+ exports["ɵjb"] = DialogTransactionLineDiscountComponent;
24240
+ exports["ɵjc"] = TransactionLinesGridComponent;
24241
+ exports["ɵjd"] = DiscountModule;
24242
+ exports["ɵje"] = DiscountComponent;
24243
+ exports["ɵjf"] = TransactionQuickAccessOverviewModule;
24244
+ exports["ɵjg"] = DialogCatalogModule;
24245
+ exports["ɵjh"] = DialogCatalogComponent;
24246
+ exports["ɵji"] = TransactionQuickAccessOverviewComponent;
24247
+ exports["ɵjj"] = TransactionQuickAccessOrderDeliveryModule;
24248
+ exports["ɵjk"] = TransactionSendButtonDialogModule;
24249
+ exports["ɵjl"] = TransactionSendButtonDialogComponent;
24250
+ exports["ɵjm"] = TransactionQuickAccessOrderDeliveryComponent;
24251
+ exports["ɵjn"] = TransactionOrderDeliveryService;
24252
+ exports["ɵjo"] = TransactionQuickAccessOrderPurchaseModule;
24253
+ exports["ɵjp"] = TransactionQuickAccessOrderPurchaseComponent;
24254
+ exports["ɵjq"] = TransactionQuickAccessGoodsAllocationModule;
24255
+ exports["ɵjr"] = TransactionQuickAccessGoodsAllocationComponent;
24256
+ exports["ɵjs"] = TransactionAllocateGoodsService;
24257
+ exports["ɵjt"] = TransactionOrderConfirmationGridModule;
24258
+ exports["ɵju"] = TransactionOrderConfirmationGridComponent;
24259
+ exports["ɵjv"] = TransactionReceivedGoodsGridModule;
24260
+ exports["ɵjw"] = DialogTransactionLineWarehouseLocationModule;
24261
+ exports["ɵjx"] = TransactionLineWarehouseLocationModule;
24262
+ exports["ɵjy"] = TransactionLineWarehouseLocationComponent;
24263
+ exports["ɵjz"] = DialogTransactionLineWarehouseLocationComponent;
24222
24264
  exports["ɵk"] = SelectMultipleParameterizedCacheService;
24223
24265
  exports["ɵka"] = TransactionReceivedGoodsGridComponent;
24224
24266
  exports["ɵkb"] = ViewModeButtonsModule;