@colijnit/sharedcomponents 1.0.37 → 1.0.38

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 (48) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +642 -122
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +43 -31
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +44 -32
  6. package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +46 -0
  7. package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +46 -0
  8. package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +46 -0
  9. package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +46 -0
  10. package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +46 -0
  11. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +65 -0
  12. package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +68 -0
  13. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +170 -0
  14. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +38 -0
  15. package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +34 -0
  16. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +1 -2
  17. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +173 -0
  18. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +9 -9
  19. package/esm2015/lib/components/stock/stock.component.js +26 -38
  20. package/esm2015/lib/components/stock/stock.module.js +29 -6
  21. package/esm2015/lib/components/tab-bar/tab-bar.component.js +45 -0
  22. package/esm2015/lib/components/tab-bar/tab-bar.module.js +19 -0
  23. package/esm2015/lib/components/tab-bar/tab.interface.js +2 -0
  24. package/fesm2015/colijnit-sharedcomponents.js +846 -110
  25. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  26. package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -0
  27. package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -0
  28. package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -0
  29. package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -0
  30. package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -0
  31. package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -0
  32. package/lib/components/stock/components/stock-history/stock-history.component.d.ts +15 -0
  33. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +38 -0
  34. package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +8 -0
  35. package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +8 -0
  36. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +46 -0
  37. package/lib/components/stock/stock.component.d.ts +2 -4
  38. package/lib/components/stock/style/_layout.scss +4 -2
  39. package/lib/components/tab-bar/style/_layout.scss +60 -0
  40. package/lib/components/tab-bar/style/_material-definition.scss +0 -0
  41. package/lib/components/tab-bar/style/_theme.scss +0 -0
  42. package/lib/components/tab-bar/style/material.scss +4 -0
  43. package/lib/components/tab-bar/tab-bar.component.d.ts +9 -0
  44. package/lib/components/tab-bar/tab-bar.module.d.ts +2 -0
  45. package/lib/components/tab-bar/tab.interface.d.ts +5 -0
  46. package/package.json +1 -1
  47. package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
  48. package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -15
@@ -22,7 +22,6 @@ import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
22
22
  import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/factory/business-object-factory';
23
23
  import { SendMethod as SendMethod$1 } from '@colijnit/mainapi/build/model/send-method.bo';
24
24
  import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
25
- import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
26
25
  import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
27
26
  import { InputCheckboxModule, IconModule, CoDialogModule, ButtonModule, InputComboBoxModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, ClickoutsideModule, InputDatePickerModule } from '@colijnit/corecomponents_v12';
28
27
  import * as i1 from '@angular/platform-browser';
@@ -34,6 +33,7 @@ import { ReportingDocumentPrintBaseRequest } from '@colijnit/mainapi/build/model
34
33
  import { ReportingDocumentEmailBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-base-request';
35
34
  import { ReportingDocumentPdfBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-pdf-base-request';
36
35
  import { SendMethodType } from '@colijnit/mainapi/build/enum/send-method-type.enum';
36
+ import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
37
37
  import { CircularGaugeModule } from '@syncfusion/ej2-angular-circulargauge';
38
38
  import * as moment from 'moment';
39
39
 
@@ -980,10 +980,10 @@ class StockComponent {
980
980
  this.okButtonClicked = new EventEmitter();
981
981
  this.cancelButtonClicked = new EventEmitter();
982
982
  this.showStockInformationGrid = true;
983
- this.showStockLocation = false;
984
983
  this.showStockTransfer = false;
985
984
  this.allAvailableStock = 0;
986
985
  this.allTechnicalStock = 0;
986
+ this.showSendMethodDialog = false;
987
987
  this._subscriptions = [];
988
988
  this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(loaded => this._handleSettingsLoaded(loaded)));
989
989
  }
@@ -998,28 +998,20 @@ class StockComponent {
998
998
  ngOnDestroy() {
999
999
  this._subscriptions.forEach(subscription => subscription.unsubscribe());
1000
1000
  }
1001
- backToStockLinesClicked() {
1002
- this.showStockLocation = false;
1003
- this.showStockInformationGrid = true;
1004
- }
1005
1001
  handleStockTransferClick(event) {
1006
1002
  this.stockTransferArticleDetails = event;
1007
1003
  this.showStockTransfer = !this.showStockTransfer;
1008
1004
  this.showStockInformationGrid = !this.showStockInformationGrid;
1009
1005
  this.stockService.stockStickers = new PrintStockStickers();
1010
1006
  }
1007
+ handleSendMethodClick(event) {
1008
+ this.showSendMethodDialog = true;
1009
+ console.log(event);
1010
+ }
1011
1011
  backToStock() {
1012
1012
  this.showStockTransfer = !this.showStockTransfer;
1013
1013
  this.showStockInformationGrid = !this.showStockInformationGrid;
1014
1014
  }
1015
- getStockHistory() {
1016
- return __awaiter(this, void 0, void 0, function* () {
1017
- const stockHistoryInformation = new GetStockHistoryRequest();
1018
- stockHistoryInformation.type = "B";
1019
- stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
1020
- this.stockHistory = yield this.stockService.getStockHistory(stockHistoryInformation);
1021
- });
1022
- }
1023
1015
  getStockInformation(data) {
1024
1016
  return __awaiter(this, void 0, void 0, function* () {
1025
1017
  const articleData = new ArticleStock$1();
@@ -1062,30 +1054,27 @@ StockComponent.decorators = [
1062
1054
  >
1063
1055
  </co-stock-information>
1064
1056
  <hr>
1065
- <co-stock-information-grid *ngIf="showStockInformationGrid"
1066
- [article]="articleExtended"
1067
- [stockLocationData]="stockLocationInformation"
1068
- [articleStockInformation]="stockInformation"
1069
- (transferIconClicked)="handleStockTransferClick($event)"
1070
- (historyClicked)="getStockHistory()"
1071
- [stockHistoryInformation]="stockHistory"
1072
- (okButtonClicked)="okButtonClicked.emit()"
1073
- (cancelButtonClicked)="cancelButtonClicked.emit()"
1074
- >
1075
- </co-stock-information-grid>
1076
- <co-stock-location *ngIf="showStockLocation"
1077
- (backToStockLines)="backToStockLinesClicked()">
1057
+ <co-stock-tabs [stockInformation]="stockInformation"
1058
+ [article]="articleExtended"
1059
+ (transferIconClicked)="handleStockTransferClick($event)"
1060
+ (sendMethodDialogClicked)="handleSendMethodClick($event)"
1061
+ ></co-stock-tabs>
1078
1062
 
1079
- </co-stock-location>
1080
- <co-stock-transfer *ngIf="showStockTransfer"
1081
- (handleClick)="backToStock()"
1082
- [article]="stockTransferArticle"
1083
- [articleToTransfer]="stockTransferArticleDetails"
1084
- (handleStickerClicked)="handleStickerClicked.emit($event)"
1085
- [articleWarehouse]="articleWarehouse"
1086
- [allWarehouses]="allWarehouses"
1087
- >
1088
- </co-stock-transfer>
1063
+ <co-dialog *ngIf="showStockTransfer">
1064
+ <co-stock-transfer (handleClick)="backToStock()"
1065
+ class="stock-transfer-dialog"
1066
+ [article]="stockTransferArticle"
1067
+ [articleToTransfer]="stockTransferArticleDetails"
1068
+ (handleStickerClicked)="handleStickerClicked.emit($event)"
1069
+ [articleWarehouse]="articleWarehouse"
1070
+ [allWarehouses]="allWarehouses"
1071
+ >
1072
+ </co-stock-transfer>
1073
+ </co-dialog>
1074
+
1075
+ <co-send-method-dialog *ngIf="showSendMethodDialog">
1076
+
1077
+ </co-send-method-dialog>
1089
1078
  </div>
1090
1079
  `,
1091
1080
  encapsulation: ViewEncapsulation.None
@@ -1415,7 +1404,6 @@ class StockInformationGridComponent {
1415
1404
  }
1416
1405
  onOkClickSendLocations() {
1417
1406
  return __awaiter(this, void 0, void 0, function* () {
1418
- console.log(this.article);
1419
1407
  this.selectedArticleDetailsData.selected = true;
1420
1408
  this.selectedArticleDetailsData.goodId = this.article.goodId;
1421
1409
  this.selectedArticleDetailsData.entryDate = new Date();
@@ -1707,66 +1695,6 @@ StockInformationGridComponent.propDecorators = {
1707
1695
  okButtonClicked: [{ type: Output }]
1708
1696
  };
1709
1697
 
1710
- class StockLocationComponent {
1711
- constructor(_stockService) {
1712
- this._stockService = _stockService;
1713
- this.backToStockLines = new EventEmitter();
1714
- this.stockLocationColumns = [];
1715
- this.stockLocationColumns.push({ field: "location", headerText: "WAREHOUSE", editType: "none" }, { field: "batch", headerText: "BATCH" }, { field: "serieNo", headerText: "SERIAL_NO" }, { field: "amountInStock", headerText: "STOCK", textAlign: "Right", editType: "numericEdit" }, { field: "allocated", headerText: "ALLOCATED", textAlign: "Right" }, { field: "amountAvailable", headerText: "AVAILABLE_STOCK", textAlign: "Right" }, { field: "PhysicalStock", headerText: "PHYSICAL_STOCK", textAlign: "Right" }, { field: "Valuta", headerText: "VALUTA", textAlign: "Right" }, { field: "PurchasePrice", headerText: "PURSCHASE_PRICE", textAlign: "Right" }, { field: "SupplierNo", headerText: "SUPPLIER_NO", textAlign: "Right" }, { field: "Transfer", headerText: "TRANSFER" }, { field: "sticker", headerText: "STICKER" });
1716
- }
1717
- backToStockInformation() {
1718
- this.backToStockLines.emit();
1719
- }
1720
- onOkClick() {
1721
- }
1722
- onCancelClick() {
1723
- }
1724
- onSelectWarehouse(event) {
1725
- }
1726
- }
1727
- StockLocationComponent.decorators = [
1728
- { type: Component, args: [{
1729
- selector: "co-stock-location",
1730
- template: `
1731
- <div class="stock-location-wrapper">
1732
- <div class="buttons-wrapper">
1733
- <div class="stock-button-left-group">
1734
- <span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
1735
- </div>
1736
- <div class="dropdown-wrapper">
1737
- <co-drop-down-list
1738
- [collection]="allWarehouses"
1739
- [placeholder]="'WAREHOUSES'"
1740
- (modelChange)="onSelectWarehouse($event)"
1741
- ></co-drop-down-list>
1742
- </div>
1743
- </div>
1744
-
1745
- <div class="stock-grid">
1746
-
1747
- </div>
1748
- <div class="button-wrapper">
1749
- <div class="button-left">
1750
- <co-button (click)="onOkClick()"></co-button>
1751
- </div>
1752
- <div class="button-right">
1753
- <co-button (click)="onCancelClick()"></co-button>
1754
- </div>
1755
- </div>
1756
- </div>
1757
-
1758
- `,
1759
- encapsulation: ViewEncapsulation.None
1760
- },] }
1761
- ];
1762
- StockLocationComponent.ctorParameters = () => [
1763
- { type: StockService }
1764
- ];
1765
- StockLocationComponent.propDecorators = {
1766
- stockLocationInformation: [{ type: Input }],
1767
- backToStockLines: [{ type: Output }]
1768
- };
1769
-
1770
1698
  class StockTransferComponent {
1771
1699
  constructor(_stockService) {
1772
1700
  this._stockService = _stockService;
@@ -1838,14 +1766,14 @@ StockTransferComponent.decorators = [
1838
1766
  [textContent]="articleToTransfer.locationNo"
1839
1767
  [placeholder]="'Standaard locatie'">
1840
1768
  </co-input-text>
1841
- <co-input-text disabled
1842
- [(model)]="stockSticker.batch"
1843
- [placeholder]="'Batch'">
1844
- </co-input-text>
1845
- <co-input-text disabled
1846
- [(model)]="stockSticker.serial"
1847
- [placeholder]="'Serie'">
1848
- </co-input-text>
1769
+ <!-- <co-input-text disabled-->
1770
+ <!-- [(model)]="stockSticker.batch"-->
1771
+ <!-- [placeholder]="'Batch'">-->
1772
+ <!-- </co-input-text>-->
1773
+ <!-- <co-input-text disabled-->
1774
+ <!-- [(model)]="stockSticker.serial"-->
1775
+ <!-- [placeholder]="'Serie'">-->
1776
+ <!-- </co-input-text>-->
1849
1777
  <co-input-text
1850
1778
  [(model)]="articleToTransfer.amountTransfer"
1851
1779
  [placeholder]="'Aantal'">
@@ -2632,6 +2560,802 @@ StockChangeAmountComponent.propDecorators = {
2632
2560
  closeStockChangeAmount: [{ type: Output }]
2633
2561
  };
2634
2562
 
2563
+ class StockTabComponent {
2564
+ constructor() {
2565
+ this.locationClicked = new EventEmitter();
2566
+ }
2567
+ onLocationClick(data) {
2568
+ this.locationClicked.emit(data);
2569
+ }
2570
+ }
2571
+ StockTabComponent.decorators = [
2572
+ { type: Component, args: [{
2573
+ selector: "co-stock-tab",
2574
+ template: `
2575
+ <co-simple-grid [data]="articleStockInformation"
2576
+ class="simple-grid"
2577
+ [rowsPerPage]="20"
2578
+ >
2579
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'" [order]="10"></co-simple-grid-column>
2580
+ <co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'" [order]="11"></co-simple-grid-column>
2581
+ <co-simple-grid-column [headerText]="'STOCK'" [field]="'technicalStock'" [order]="12"></co-simple-grid-column>
2582
+ <co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'availableStock'" [order]="13"></co-simple-grid-column>
2583
+ <co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'economicalStock'" [order]="14"></co-simple-grid-column>
2584
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'" [order]="15">
2585
+ <ng-template #template let-row="row">
2586
+ <span class="location-link" [textContent]="'Bekijken'" (click)="onLocationClick(row)"></span>
2587
+ </ng-template>
2588
+ </co-simple-grid-column>
2589
+ </co-simple-grid>
2590
+ `,
2591
+ encapsulation: ViewEncapsulation.None
2592
+ },] }
2593
+ ];
2594
+ StockTabComponent.ctorParameters = () => [];
2595
+ StockTabComponent.propDecorators = {
2596
+ articleStockInformation: [{ type: Input }],
2597
+ locationClicked: [{ type: Output }]
2598
+ };
2599
+
2600
+ class OrderTabComponent {
2601
+ constructor(iconCacheService, _stockService) {
2602
+ this.iconCacheService = iconCacheService;
2603
+ this._stockService = _stockService;
2604
+ this.icons = Icon;
2605
+ this.locationClicked = new EventEmitter();
2606
+ this.transferIconClicked = new EventEmitter();
2607
+ this.sendMethodDialogClicked = new EventEmitter();
2608
+ }
2609
+ openSendMethodDialog(data) {
2610
+ this.sendMethodDialogClicked.emit(data);
2611
+ }
2612
+ handleStockTransferClick(event) {
2613
+ this.transferIconClicked.emit(event);
2614
+ }
2615
+ }
2616
+ OrderTabComponent.decorators = [
2617
+ { type: Component, args: [{
2618
+ selector: "co-order-tab",
2619
+ template: `
2620
+ <co-simple-grid [data]="inOrderInformation"
2621
+ class="simple-grid"
2622
+ [rowsPerPage]="20"
2623
+ >
2624
+ <co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'transactionNr'"></co-simple-grid-column>
2625
+ <co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'customerName'"></co-simple-grid-column>
2626
+ <co-simple-grid-column [headerText]="'DATE'">
2627
+ <ng-template #template let-row="row">
2628
+ <span [textContent]="row.transactionDate | date:'dd-MM-yyyy'"></span>
2629
+ </ng-template>
2630
+ </co-simple-grid-column>
2631
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amountInOrder'"></co-simple-grid-column>
2632
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNumber'"></co-simple-grid-column>
2633
+ <co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseDescription'"></co-simple-grid-column>
2634
+ <co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
2635
+ <ng-template #template let-row="row">
2636
+ <co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick(row)"></co-icon>
2637
+ </ng-template>
2638
+ </co-simple-grid-column>
2639
+ <co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
2640
+ <ng-template #template let-row="row">
2641
+ <co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(row)"></co-icon>
2642
+ </ng-template>
2643
+ </co-simple-grid-column>
2644
+ </co-simple-grid>
2645
+ `,
2646
+ encapsulation: ViewEncapsulation.None
2647
+ },] }
2648
+ ];
2649
+ OrderTabComponent.ctorParameters = () => [
2650
+ { type: IconCacheService },
2651
+ { type: StockService }
2652
+ ];
2653
+ OrderTabComponent.propDecorators = {
2654
+ articleStockInformation: [{ type: Input }],
2655
+ inOrderInformation: [{ type: Input }],
2656
+ locationClicked: [{ type: Output }],
2657
+ transferIconClicked: [{ type: Output }],
2658
+ sendMethodDialogClicked: [{ type: Output }]
2659
+ };
2660
+
2661
+ class StockTabsComponent {
2662
+ constructor(_stockService) {
2663
+ this._stockService = _stockService;
2664
+ this.icons = Icon;
2665
+ this.transferIconClicked = new EventEmitter();
2666
+ this.sendMethodDialogClicked = new EventEmitter();
2667
+ this.tabs = [
2668
+ { title: 'Overzicht', active: true },
2669
+ { title: 'Voorraaddetails', active: false, clickHandler: this.getStockManagementWarehouses.bind(this) },
2670
+ { title: 'In order', active: false, clickHandler: this.getInOrderData.bind(this) },
2671
+ { title: 'In bestelling', active: false, clickHandler: this.getOrderData.bind(this) },
2672
+ { title: 'Historie', active: false },
2673
+ ];
2674
+ this.historyTabs = [
2675
+ { title: 'Voorraad', active: false, clickHandler: this.getStockHistory.bind(this) },
2676
+ { title: 'Order voorraad', active: false, clickHandler: this.getOrderSupplyStockHistory.bind(this) },
2677
+ { title: 'Order commissie', active: false, clickHandler: this.getOrderCommissionStockHistory.bind(this) },
2678
+ { title: 'Bestelling', active: false, clickHandler: this.getOrderStockHistory.bind(this) },
2679
+ { title: 'Toewijzing', active: false, clickHandler: this.getAllocationStockHistory.bind(this) },
2680
+ ];
2681
+ }
2682
+ handleLocationClicked(data) {
2683
+ this.clickedLocation = data.warehouseNo;
2684
+ this.tabs[0].active = false;
2685
+ this.tabs[1].active = true;
2686
+ }
2687
+ getStockHistory() {
2688
+ return __awaiter(this, void 0, void 0, function* () {
2689
+ if (!this.stockHistory) {
2690
+ const stockHistoryInformation = new GetStockHistoryRequest();
2691
+ stockHistoryInformation.type = "V";
2692
+ stockHistoryInformation.goodId = this.article;
2693
+ this.stockHistory = yield this._stockService.getStockHistory(stockHistoryInformation);
2694
+ }
2695
+ });
2696
+ }
2697
+ getOrderSupplyStockHistory() {
2698
+ return __awaiter(this, void 0, void 0, function* () {
2699
+ if (!this.orderSupplyStockHistory) {
2700
+ const stockHistoryInformation = new GetStockHistoryRequest();
2701
+ stockHistoryInformation.type = "O";
2702
+ stockHistoryInformation.goodId = this.article;
2703
+ this.orderSupplyStockHistory = yield this._stockService.getStockHistory(stockHistoryInformation);
2704
+ }
2705
+ });
2706
+ }
2707
+ getOrderCommissionStockHistory() {
2708
+ return __awaiter(this, void 0, void 0, function* () {
2709
+ if (!this.orderCommissionStockHistory) {
2710
+ const stockHistoryInformation = new GetStockHistoryRequest();
2711
+ stockHistoryInformation.type = "C";
2712
+ stockHistoryInformation.goodId = this.article;
2713
+ this.orderCommissionStockHistory = yield this._stockService.getStockHistory(stockHistoryInformation);
2714
+ }
2715
+ });
2716
+ }
2717
+ getOrderStockHistory() {
2718
+ return __awaiter(this, void 0, void 0, function* () {
2719
+ if (!this.orderStockHistory) {
2720
+ const stockHistoryInformation = new GetStockHistoryRequest();
2721
+ stockHistoryInformation.type = "B";
2722
+ stockHistoryInformation.goodId = this.article;
2723
+ this.orderStockHistory = yield this._stockService.getStockHistory(stockHistoryInformation);
2724
+ }
2725
+ });
2726
+ }
2727
+ getAllocationStockHistory() {
2728
+ return __awaiter(this, void 0, void 0, function* () {
2729
+ if (!this.orderAllocationStockHistory) {
2730
+ const stockHistoryInformation = new GetStockHistoryRequest();
2731
+ stockHistoryInformation.type = "T";
2732
+ stockHistoryInformation.goodId = this.article;
2733
+ this.orderAllocationStockHistory = yield this._stockService.getStockHistory(stockHistoryInformation);
2734
+ }
2735
+ });
2736
+ }
2737
+ getInOrderData() {
2738
+ return __awaiter(this, void 0, void 0, function* () {
2739
+ if (!this.inOrderInformation) {
2740
+ const inOrderData = new ArticleTransaction$1();
2741
+ inOrderData.type = "V";
2742
+ inOrderData.goodId = this.stockInformation[0].goodId.toString();
2743
+ this.inOrderInformation = yield this._stockService.getArticleTransaction(inOrderData);
2744
+ }
2745
+ });
2746
+ }
2747
+ getStockManagementWarehouses() {
2748
+ this._stockService.getStockManagementWarehouses().then((warehouses) => {
2749
+ this.warehouses = warehouses;
2750
+ });
2751
+ }
2752
+ getOrderData() {
2753
+ return __awaiter(this, void 0, void 0, function* () {
2754
+ if (!this.orderInformation) {
2755
+ const orderData = new ArticleTransaction$1();
2756
+ orderData.type = "I";
2757
+ orderData.goodId = this.stockInformation[0].goodId.toString();
2758
+ this.orderInformation = yield this._stockService.getArticleTransaction(orderData);
2759
+ }
2760
+ });
2761
+ }
2762
+ }
2763
+ StockTabsComponent.decorators = [
2764
+ { type: Component, args: [{
2765
+ selector: "co-stock-tabs",
2766
+ template: `
2767
+ <co-tab-bar [tabs]="tabs" [secondaryTabs]="historyTabs" [ActivateSecondaryTabs]="tabs[4].active"></co-tab-bar>
2768
+
2769
+ <co-stock-tab *ngIf="tabs[0].active"
2770
+ [articleStockInformation]="stockInformation"
2771
+ (locationClicked)="handleLocationClicked($event)"
2772
+ ></co-stock-tab>
2773
+
2774
+ <co-stock-location *ngIf="tabs[1].active"
2775
+ [articleStockInformation]="stockInformation"
2776
+ [article]="article"
2777
+ [clickedLocation]="clickedLocation"
2778
+ [dataWareHouseCode]="warehouses"
2779
+ (transferIconClicked)="transferIconClicked.emit($event)"
2780
+ (sendMethodDialogClicked)="sendMethodDialogClicked.emit($event)"
2781
+ ></co-stock-location>
2782
+
2783
+ <co-order-tab *ngIf="tabs[2].active"
2784
+ [articleStockInformation]="stockInformation"
2785
+ [inOrderInformation]="inOrderInformation"
2786
+ (transferIconClicked)="transferIconClicked.emit($event)"
2787
+ (sendMethodDialogClicked)="sendMethodDialogClicked.emit($event)"
2788
+ ></co-order-tab>
2789
+
2790
+ <co-order-stock-tab *ngIf="tabs[3].active"
2791
+ [orderInformation]="orderInformation"
2792
+ ></co-order-stock-tab>
2793
+
2794
+ <co-stock-history *ngIf="historyTabs[0].active && tabs[4].active"
2795
+ [stockHistory]="stockHistory"
2796
+ ></co-stock-history>
2797
+
2798
+ <co-order-supply-stock-history *ngIf="historyTabs[1].active && tabs[4].active"
2799
+ [orderSupplyStockHistory]="orderSupplyStockHistory"
2800
+ ></co-order-supply-stock-history>
2801
+
2802
+ <co-order-stock-commission-history *ngIf="historyTabs[2].active && tabs[4].active"
2803
+ [orderStockCommissionHistory]="orderCommissionStockHistory"
2804
+ ></co-order-stock-commission-history>
2805
+
2806
+ <co-order-stock-history *ngIf="historyTabs[3].active && tabs[4].active"
2807
+ [orderStockHistory]="orderStockHistory"
2808
+ ></co-order-stock-history>
2809
+
2810
+ <co-allocation-stock-history *ngIf="historyTabs[4].active && tabs[4].active"
2811
+ [allocationStockHistory]="orderAllocationStockHistory"
2812
+ ></co-allocation-stock-history>
2813
+
2814
+ `,
2815
+ encapsulation: ViewEncapsulation.None
2816
+ },] }
2817
+ ];
2818
+ StockTabsComponent.ctorParameters = () => [
2819
+ { type: StockService }
2820
+ ];
2821
+ StockTabsComponent.propDecorators = {
2822
+ stockInformation: [{ type: Input }],
2823
+ article: [{ type: Input }],
2824
+ transferIconClicked: [{ type: Output }],
2825
+ sendMethodDialogClicked: [{ type: Output }]
2826
+ };
2827
+
2828
+ class StockHistoryTabsComponent {
2829
+ constructor() {
2830
+ this.icons = Icon;
2831
+ this.selectedTab = 0;
2832
+ }
2833
+ }
2834
+ StockHistoryTabsComponent.decorators = [
2835
+ { type: Component, args: [{
2836
+ selector: "co-stock-history-tabs",
2837
+ template: `
2838
+ <div class="stock-history-tabs-wrapper">
2839
+ <div class="tab-container">
2840
+ <div class="tab-header">
2841
+ <button class="tab-button" (click)="selectedTab = 0" [class.active]="selectedTab === 0">Voorraad</button>
2842
+ <button class="tab-button" (click)="selectedTab = 1" [class.active]="selectedTab === 1">Order voorraad</button>
2843
+ <button class="tab-button" (click)="selectedTab = 2" [class.active]="selectedTab === 2">Order commissie</button>
2844
+ <button class="tab-button" (click)="selectedTab = 3" [class.active]="selectedTab === 3">Bestelling</button>
2845
+ <button class="tab-button" (click)="selectedTab = 4" [class.active]="selectedTab === 4">Toewijzing</button>
2846
+ </div>
2847
+ </div>
2848
+ </div>
2849
+
2850
+
2851
+ `,
2852
+ encapsulation: ViewEncapsulation.None
2853
+ },] }
2854
+ ];
2855
+ StockHistoryTabsComponent.ctorParameters = () => [];
2856
+ StockHistoryTabsComponent.propDecorators = {
2857
+ stockInformation: [{ type: Input }]
2858
+ };
2859
+
2860
+ class OrderStockTabComponent {
2861
+ constructor(iconCacheService, _stockService) {
2862
+ this.iconCacheService = iconCacheService;
2863
+ this._stockService = _stockService;
2864
+ this.icons = Icon;
2865
+ }
2866
+ }
2867
+ OrderStockTabComponent.decorators = [
2868
+ { type: Component, args: [{
2869
+ selector: "co-order-stock-tab",
2870
+ template: `
2871
+ <co-simple-grid [data]="orderInformation"
2872
+ class="simple-grid"
2873
+ [rowsPerPage]="20"
2874
+ >
2875
+ <co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'transactionNr'"></co-simple-grid-column>
2876
+ <co-simple-grid-column [headerText]="'DATE'">
2877
+ <ng-template #template let-row="row">
2878
+ <span [textContent]="row.transactionDate | date:'dd-MM-yyyy'"></span>
2879
+ </ng-template>
2880
+ </co-simple-grid-column>
2881
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amountInOrder'"></co-simple-grid-column>
2882
+ <co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
2883
+ <co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'InOrderForStock'"></co-simple-grid-column>
2884
+ <co-simple-grid-column [headerText]="'DELIVERY_DATE1'">
2885
+ <ng-template #template let-row="row">
2886
+ <span [textContent]="row.deliveryDate | date:'dd-MM-yyyy'"></span>
2887
+ </ng-template>
2888
+ </co-simple-grid-column>
2889
+ </co-simple-grid>
2890
+ `,
2891
+ encapsulation: ViewEncapsulation.None
2892
+ },] }
2893
+ ];
2894
+ OrderStockTabComponent.ctorParameters = () => [
2895
+ { type: IconCacheService },
2896
+ { type: StockService }
2897
+ ];
2898
+ OrderStockTabComponent.propDecorators = {
2899
+ orderInformation: [{ type: Input }]
2900
+ };
2901
+
2902
+ class StockLocationComponent {
2903
+ constructor(iconCacheService, _stockService, _changeDetector) {
2904
+ this.iconCacheService = iconCacheService;
2905
+ this._stockService = _stockService;
2906
+ this._changeDetector = _changeDetector;
2907
+ this.icons = Icon;
2908
+ this.transferIconClicked = new EventEmitter();
2909
+ this.sendMethodDialogClicked = new EventEmitter();
2910
+ this.selectedWarehouse = 0;
2911
+ this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
2912
+ this.dataLocationFields = { text: "locationNo", value: "locationNo" };
2913
+ this.articleDetailsInformation = new ArticleStockManagement();
2914
+ this.selectedArticleDetailsData = new ArticleDetailsBo();
2915
+ }
2916
+ ngOnInit() {
2917
+ if (this.clickedLocation) {
2918
+ this.selectedWarehouse = this.clickedLocation;
2919
+ this.onSelectWarehouse(this.selectedWarehouse);
2920
+ }
2921
+ }
2922
+ onSelectWarehouse(event) {
2923
+ this.articleDetailsInformation.warehouseNumber = event;
2924
+ this.articleDetailsInformation.goodId = this.article.goodId;
2925
+ if (this.selectedWarehouse || this.selectedWarehouse === 0) {
2926
+ this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
2927
+ this.articleDetails = details;
2928
+ });
2929
+ }
2930
+ }
2931
+ lockSelectedRow(row) {
2932
+ this._stockService.lockArticleDetails(row);
2933
+ }
2934
+ onLocationDropdownClick() {
2935
+ this._stockService.getStockManagementLocations(this.selectedWarehouse).then((locations) => {
2936
+ this.stockLocations = locations;
2937
+ });
2938
+ }
2939
+ amountInStockChanged(data) {
2940
+ this.selectedArticleDetailsData.amountInStock = data;
2941
+ }
2942
+ openSendMethodDialog(data) {
2943
+ this.sendMethodDialogClicked.emit(data);
2944
+ }
2945
+ handleStockTransferClick(event) {
2946
+ this.transferIconClicked.emit(event);
2947
+ }
2948
+ }
2949
+ StockLocationComponent.decorators = [
2950
+ { type: Component, args: [{
2951
+ selector: "co-stock-location",
2952
+ template: `
2953
+ <div class="stock-grid">
2954
+ <div class="stock-location-group">
2955
+ <div class="stock-location-right-group">
2956
+ <co-drop-down-list [(model)]="selectedWarehouse"
2957
+ [collection]="dataWareHouseCode"
2958
+ [fields]="dataWareHouseFields"
2959
+ [placeholder]="'WAREHOUSE'"
2960
+ (modelChange)="onSelectWarehouse($event)"
2961
+ [required]="true"
2962
+ ></co-drop-down-list>
2963
+ </div>
2964
+ </div>
2965
+
2966
+ <co-simple-grid [data]="articleDetails"
2967
+ class="simple-grid"
2968
+ [rowsPerPage]="20"
2969
+ [showAdd]="true"
2970
+ [showDelete]="true"
2971
+ [inlineEdit]="true"
2972
+ (dblClickRow)="lockSelectedRow($event)"
2973
+ [rightToolbar]="true"
2974
+ [showToolbar]="true"
2975
+ >
2976
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'">
2977
+ <ng-template #editTemplate let-row="row">
2978
+ <co-drop-down-list [(model)]="row.locationNo"
2979
+ [collection]="stockLocations"
2980
+ [fields]="dataLocationFields"
2981
+ [placeholder]="'LOCATION'"
2982
+ (click)="onLocationDropdownClick()"
2983
+ [required]="true"
2984
+ ></co-drop-down-list>
2985
+ </ng-template>
2986
+ </co-simple-grid-column>
2987
+ <co-simple-grid-column *ngIf="articleDetails" [headerText]="'BATCH'" [field]="'batchNo'">
2988
+ <ng-template #editTemplate let-row="row">
2989
+ <co-input-text [(model)]="row.batchNo"
2990
+ [placeholder]="'BATCH'"
2991
+ ></co-input-text>
2992
+ </ng-template>
2993
+ </co-simple-grid-column>
2994
+ <co-simple-grid-column *ngIf="articleDetails" [headerText]="'SERIAL_NO'" [field]="'serialNo'">
2995
+ <ng-template #editTemplate let-row="row">
2996
+ <co-input-text [(model)]="row.serialNo"
2997
+ [placeholder]="'SERIAL_NO'"
2998
+ ></co-input-text>
2999
+ </ng-template>
3000
+ </co-simple-grid-column>
3001
+ <co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'">
3002
+ <ng-template #editTemplate let-row="row">
3003
+ <co-input-text [(model)]="row.amountInStock"
3004
+ [label]="'STOCK'"
3005
+ (modelChange)="amountInStockChanged($event)"
3006
+ ></co-input-text>
3007
+ </ng-template>
3008
+ </co-simple-grid-column>
3009
+ <co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'stockAssigned'">
3010
+ <ng-template #editTemplate let-row="row">
3011
+ <span [textContent]="row.stockAssigned"></span>
3012
+ </ng-template>
3013
+ </co-simple-grid-column>
3014
+ <co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'amountInStockFree'">
3015
+ <ng-template #editTemplate let-row="row">
3016
+ <span [textContent]="row.amountInStockFree"></span>
3017
+ </ng-template>
3018
+ </co-simple-grid-column>
3019
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currency'">
3020
+ <ng-template #editTemplate let-row="row">
3021
+ <span [textContent]="row.currency"></span>
3022
+ </ng-template>
3023
+ </co-simple-grid-column>
3024
+ <co-simple-grid-column [headerText]="'PURCHASE_PRICE'" [field]="'purchasePrice'">
3025
+ <ng-template #editTemplate let-row="row">
3026
+ <span [textContent]="row.purchasePrice"></span>
3027
+ </ng-template>
3028
+ </co-simple-grid-column>
3029
+ <co-simple-grid-column [headerText]="'SUPPLIER_NUMBER'" [field]="'supplierNo'">
3030
+ <ng-template #editTemplate let-row="row">
3031
+ <span [textContent]="row.supplierNo"></span>
3032
+ </ng-template>
3033
+ </co-simple-grid-column>
3034
+ <co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
3035
+ <ng-template #template let-row="row">
3036
+ <co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)"
3037
+ (click)="handleStockTransferClick(row)"></co-icon>
3038
+ </ng-template>
3039
+ </co-simple-grid-column>
3040
+ <co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
3041
+ <ng-template #template let-row="row">
3042
+ <co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)"
3043
+ (click)="openSendMethodDialog(row)"></co-icon>
3044
+ </ng-template>
3045
+ </co-simple-grid-column>
3046
+ </co-simple-grid>
3047
+ </div>
3048
+ `,
3049
+ encapsulation: ViewEncapsulation.None
3050
+ },] }
3051
+ ];
3052
+ StockLocationComponent.ctorParameters = () => [
3053
+ { type: IconCacheService },
3054
+ { type: StockService },
3055
+ { type: ChangeDetectorRef }
3056
+ ];
3057
+ StockLocationComponent.propDecorators = {
3058
+ articleStockInformation: [{ type: Input }],
3059
+ article: [{ type: Input }],
3060
+ clickedLocation: [{ type: Input }],
3061
+ dataWareHouseCode: [{ type: Input }],
3062
+ transferIconClicked: [{ type: Output }],
3063
+ sendMethodDialogClicked: [{ type: Output }]
3064
+ };
3065
+
3066
+ class StockHistoryComponent {
3067
+ constructor(iconCacheService, _stockService) {
3068
+ this.iconCacheService = iconCacheService;
3069
+ this._stockService = _stockService;
3070
+ this.icons = Icon;
3071
+ }
3072
+ openSendMethodDialog(data) {
3073
+ if (!(this._stockService.printLayoutParams instanceof PrintPriceStickers)) {
3074
+ this._stockService.printLayoutParams.goodId = data.goodId;
3075
+ this._stockService.printLayoutParams.warehouse = data.warehouseNo;
3076
+ }
3077
+ }
3078
+ getStockHistory() {
3079
+ return __awaiter(this, void 0, void 0, function* () {
3080
+ const stockHistoryInformation = new GetStockHistoryRequest();
3081
+ stockHistoryInformation.type = "B";
3082
+ stockHistoryInformation.goodId = this.articleGoodId;
3083
+ this.stockHistory = yield this._stockService.getStockHistory(stockHistoryInformation);
3084
+ });
3085
+ }
3086
+ }
3087
+ StockHistoryComponent.decorators = [
3088
+ { type: Component, args: [{
3089
+ selector: "co-stock-history",
3090
+ template: `
3091
+ <co-simple-grid [data]="stockHistory"
3092
+ class="simple-grid"
3093
+ [rowsPerPage]="20"
3094
+ >
3095
+ <co-simple-grid-column [headerText]="'MUTATION_DATE'">
3096
+ <ng-template #template let-row="row">
3097
+ <span [textContent]="row.mutationDate | date:'dd-MM-yyyy'"></span>
3098
+ </ng-template>
3099
+ </co-simple-grid-column>
3100
+ <co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
3101
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
3102
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
3103
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
3104
+ <co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
3105
+ <co-simple-grid-column [headerText]="'LINE'" [field]="'transLineNr'"></co-simple-grid-column>
3106
+ <co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
3107
+ <co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
3108
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
3109
+ <co-simple-grid-column [headerText]="'RELATION_NR'" [field]="'relationNr'"></co-simple-grid-column>
3110
+ <co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
3111
+ <co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
3112
+ </co-simple-grid>
3113
+ `,
3114
+ encapsulation: ViewEncapsulation.None
3115
+ },] }
3116
+ ];
3117
+ StockHistoryComponent.ctorParameters = () => [
3118
+ { type: IconCacheService },
3119
+ { type: StockService }
3120
+ ];
3121
+ StockHistoryComponent.propDecorators = {
3122
+ stockHistoryInformation: [{ type: Input }],
3123
+ articleGoodId: [{ type: Input }],
3124
+ stockHistory: [{ type: Input }]
3125
+ };
3126
+
3127
+ class TabBarComponent {
3128
+ constructor() {
3129
+ this.ActivateSecondaryTabs = false;
3130
+ }
3131
+ selectTab(tab) {
3132
+ if (tab.clickHandler) {
3133
+ tab.clickHandler();
3134
+ }
3135
+ this.tabs.forEach(t => t.active = false);
3136
+ tab.active = true;
3137
+ }
3138
+ selectSecondaryTab(secondaryTab) {
3139
+ if (secondaryTab.clickHandler) {
3140
+ secondaryTab.clickHandler();
3141
+ }
3142
+ this.secondaryTabs.forEach(t => t.active = false);
3143
+ secondaryTab.active = true;
3144
+ }
3145
+ }
3146
+ TabBarComponent.decorators = [
3147
+ { type: Component, args: [{
3148
+ selector: "co-tab-bar",
3149
+ template: `
3150
+ <div class="tab-bar">
3151
+ <button *ngFor="let tab of tabs" [class.active]="tab.active" (click)="selectTab(tab)">
3152
+ {{tab.title}}
3153
+ </button>
3154
+ </div>
3155
+ <div class="secondary-tab-bar" *ngIf="ActivateSecondaryTabs">
3156
+ <button *ngFor="let tab of secondaryTabs" [class.active]="tab.active" (click)="selectSecondaryTab(tab)">
3157
+ {{tab.title}}
3158
+ </button>
3159
+ </div>
3160
+ `,
3161
+ encapsulation: ViewEncapsulation.None
3162
+ },] }
3163
+ ];
3164
+ TabBarComponent.ctorParameters = () => [];
3165
+ TabBarComponent.propDecorators = {
3166
+ tabs: [{ type: Input }],
3167
+ secondaryTabs: [{ type: Input }],
3168
+ ActivateSecondaryTabs: [{ type: Input }]
3169
+ };
3170
+
3171
+ class TabBarModule {
3172
+ }
3173
+ TabBarModule.decorators = [
3174
+ { type: NgModule, args: [{
3175
+ imports: [
3176
+ CommonModule,
3177
+ ],
3178
+ declarations: [
3179
+ TabBarComponent
3180
+ ],
3181
+ exports: [
3182
+ TabBarComponent
3183
+ ]
3184
+ },] }
3185
+ ];
3186
+
3187
+ class OrderSupplyStockHistoryComponent {
3188
+ constructor(iconCacheService) {
3189
+ this.iconCacheService = iconCacheService;
3190
+ this.icons = Icon;
3191
+ }
3192
+ }
3193
+ OrderSupplyStockHistoryComponent.decorators = [
3194
+ { type: Component, args: [{
3195
+ selector: "co-order-supply-stock-history",
3196
+ template: `
3197
+ <co-simple-grid [data]="orderSupplyStockHistory"
3198
+ class="simple-grid"
3199
+ [rowsPerPage]="20"
3200
+ >
3201
+ <co-simple-grid-column [headerText]="'MUTATION_DATE'">
3202
+ <ng-template #template let-row="row">
3203
+ <span [textContent]="row.mutationDate | date:'dd-MM-yyyy'"></span>
3204
+ </ng-template>
3205
+ </co-simple-grid-column>
3206
+ <co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
3207
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
3208
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
3209
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
3210
+ <co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
3211
+ <co-simple-grid-column [headerText]="'LINE'" [field]="'transLineNr'"></co-simple-grid-column>
3212
+ <co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
3213
+ <co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
3214
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
3215
+ <co-simple-grid-column [headerText]="'RELATION_NR'" [field]="'relationNr'"></co-simple-grid-column>
3216
+ <co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
3217
+ <co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
3218
+ </co-simple-grid>
3219
+ `,
3220
+ encapsulation: ViewEncapsulation.None
3221
+ },] }
3222
+ ];
3223
+ OrderSupplyStockHistoryComponent.ctorParameters = () => [
3224
+ { type: IconCacheService }
3225
+ ];
3226
+ OrderSupplyStockHistoryComponent.propDecorators = {
3227
+ orderSupplyStockHistory: [{ type: Input }]
3228
+ };
3229
+
3230
+ class OrderCommissionStockHistoryComponent {
3231
+ constructor(iconCacheService) {
3232
+ this.iconCacheService = iconCacheService;
3233
+ this.icons = Icon;
3234
+ }
3235
+ }
3236
+ OrderCommissionStockHistoryComponent.decorators = [
3237
+ { type: Component, args: [{
3238
+ selector: "co-order-stock-commission-history",
3239
+ template: `
3240
+ <co-simple-grid [data]="orderStockCommissionHistory"
3241
+ class="simple-grid"
3242
+ [rowsPerPage]="20"
3243
+ >
3244
+ <co-simple-grid-column [headerText]="'MUTATION_DATE'">
3245
+ <ng-template #template let-row="row">
3246
+ <span [textContent]="row.mutationDate | date:'dd-MM-yyyy'"></span>
3247
+ </ng-template>
3248
+ </co-simple-grid-column>
3249
+ <co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
3250
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
3251
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
3252
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
3253
+ <co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
3254
+ <co-simple-grid-column [headerText]="'LINE'" [field]="'transLineNr'"></co-simple-grid-column>
3255
+ <co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
3256
+ <co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
3257
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
3258
+ <co-simple-grid-column [headerText]="'RELATION_NR'" [field]="'relationNr'"></co-simple-grid-column>
3259
+ <co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
3260
+ <co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
3261
+ </co-simple-grid>
3262
+ `,
3263
+ encapsulation: ViewEncapsulation.None
3264
+ },] }
3265
+ ];
3266
+ OrderCommissionStockHistoryComponent.ctorParameters = () => [
3267
+ { type: IconCacheService }
3268
+ ];
3269
+ OrderCommissionStockHistoryComponent.propDecorators = {
3270
+ orderStockCommissionHistory: [{ type: Input }]
3271
+ };
3272
+
3273
+ class OrderStockHistoryComponent {
3274
+ constructor(iconCacheService) {
3275
+ this.iconCacheService = iconCacheService;
3276
+ this.icons = Icon;
3277
+ }
3278
+ }
3279
+ OrderStockHistoryComponent.decorators = [
3280
+ { type: Component, args: [{
3281
+ selector: "co-order-stock-history",
3282
+ template: `
3283
+ <co-simple-grid [data]="orderStockHistory"
3284
+ class="simple-grid"
3285
+ [rowsPerPage]="20"
3286
+ >
3287
+ <co-simple-grid-column [headerText]="'MUTATION_DATE'">
3288
+ <ng-template #template let-row="row">
3289
+ <span [textContent]="row.mutationDate | date:'dd-MM-yyyy'"></span>
3290
+ </ng-template>
3291
+ </co-simple-grid-column>
3292
+ <co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
3293
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
3294
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
3295
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
3296
+ <co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
3297
+ <co-simple-grid-column [headerText]="'LINE'" [field]="'transLineNr'"></co-simple-grid-column>
3298
+ <co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
3299
+ <co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
3300
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
3301
+ <co-simple-grid-column [headerText]="'RELATION_NR'" [field]="'relationNr'"></co-simple-grid-column>
3302
+ <co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
3303
+ <co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
3304
+ </co-simple-grid>
3305
+ `,
3306
+ encapsulation: ViewEncapsulation.None
3307
+ },] }
3308
+ ];
3309
+ OrderStockHistoryComponent.ctorParameters = () => [
3310
+ { type: IconCacheService }
3311
+ ];
3312
+ OrderStockHistoryComponent.propDecorators = {
3313
+ orderStockHistory: [{ type: Input }]
3314
+ };
3315
+
3316
+ class AllocationStockHistoryComponent {
3317
+ constructor(iconCacheService) {
3318
+ this.iconCacheService = iconCacheService;
3319
+ this.icons = Icon;
3320
+ }
3321
+ }
3322
+ AllocationStockHistoryComponent.decorators = [
3323
+ { type: Component, args: [{
3324
+ selector: "co-allocation-stock-history",
3325
+ template: `
3326
+ <co-simple-grid [data]="allocationStockHistory"
3327
+ class="simple-grid"
3328
+ [rowsPerPage]="20"
3329
+ >
3330
+ <co-simple-grid-column [headerText]="'MUTATION_DATE'">
3331
+ <ng-template #template let-row="row">
3332
+ <span [textContent]="row.mutationDate | date:'dd-MM-yyyy'"></span>
3333
+ </ng-template>
3334
+ </co-simple-grid-column>
3335
+ <co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
3336
+ <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
3337
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
3338
+ <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
3339
+ <co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
3340
+ <co-simple-grid-column [headerText]="'LINE'" [field]="'transLineNr'"></co-simple-grid-column>
3341
+ <co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
3342
+ <co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
3343
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
3344
+ <co-simple-grid-column [headerText]="'RELATION_NR'" [field]="'relationNr'"></co-simple-grid-column>
3345
+ <co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
3346
+ <co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
3347
+ </co-simple-grid>
3348
+ `,
3349
+ encapsulation: ViewEncapsulation.None
3350
+ },] }
3351
+ ];
3352
+ AllocationStockHistoryComponent.ctorParameters = () => [
3353
+ { type: IconCacheService }
3354
+ ];
3355
+ AllocationStockHistoryComponent.propDecorators = {
3356
+ allocationStockHistory: [{ type: Input }]
3357
+ };
3358
+
2635
3359
  class StockModule {
2636
3360
  }
2637
3361
  StockModule.decorators = [
@@ -2650,15 +3374,27 @@ StockModule.decorators = [
2650
3374
  IconModule,
2651
3375
  InputNumberPickerModule,
2652
3376
  CoDialogWizardModule,
2653
- InputTextareaModule
3377
+ InputTextareaModule,
3378
+ TabBarModule,
3379
+ CoDialogModule
2654
3380
  ],
2655
3381
  declarations: [
2656
3382
  StockComponent,
2657
3383
  StockInformationComponent,
2658
3384
  StockInformationGridComponent,
2659
- StockLocationComponent,
2660
3385
  StockTransferComponent,
2661
- StockChangeAmountComponent
3386
+ StockChangeAmountComponent,
3387
+ StockTabComponent,
3388
+ OrderTabComponent,
3389
+ StockTabsComponent,
3390
+ StockHistoryTabsComponent,
3391
+ OrderStockTabComponent,
3392
+ StockLocationComponent,
3393
+ StockHistoryComponent,
3394
+ OrderSupplyStockHistoryComponent,
3395
+ OrderCommissionStockHistoryComponent,
3396
+ OrderStockHistoryComponent,
3397
+ AllocationStockHistoryComponent
2662
3398
  ],
2663
3399
  exports: [
2664
3400
  StockComponent
@@ -5233,5 +5969,5 @@ DatePlanningModule.decorators = [
5233
5969
  * Generated bundle index. Do not edit.
5234
5970
  */
5235
5971
 
5236
- export { CoCircularGaugeComponent, CoCircularGaugeModule, CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, CalendarComponent as ɵba, CalendarViewComponent as ɵbb, LanguageCode as ɵbc, AgendaHeaderComponent as ɵbd, AgendaViewComponent as ɵbe, AgendaMonthViewComponent as ɵbf, AgendaBaseViewComponent as ɵbg, AgendaDayViewComponent as ɵbh, AgendaWeekViewComponent as ɵbi, AgendaWeekSelectViewComponent as ɵbj, AgendaHourViewComponent as ɵbk, AgendaHourCellComponent as ɵbl, AgendaHourViewLabelsComponent as ɵbm, AgendaHalfHourCellComponent as ɵbn, AgendaEventsComponent as ɵbo, AgendaEventComponent as ɵbp, ViewSelectComponent as ɵbq, AgendaSelectEventComponent as ɵbr, MASTER_PIPES as ɵbs, ArrayNumberPipe as ɵbt, UCfirstPipe as ɵbu, StockService as ɵc, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, IconCacheService as ɵg, SendMethodService as ɵh, SendMethodEmailModule as ɵi, LayoutSelectionModule as ɵj, LayoutSelectionComponent as ɵk, SendMethodEmailComponent as ɵl, SendMethodPrinterModule as ɵm, PrinterSelectionModule as ɵn, PrinterSelectionComponent as ɵo, SendMethodPrinterComponent as ɵp, StockInformationComponent as ɵq, StockInformationGridComponent as ɵr, StockLocationComponent as ɵs, StockTransferComponent as ɵt, StockChangeAmountComponent as ɵu, SendMethod as ɵv, Icon as ɵw, CalendarAllYearsComponent as ɵx, CalendarAllMonthsComponent as ɵy, CalendarHeaderComponent as ɵz };
5972
+ export { CoCircularGaugeComponent, CoCircularGaugeModule, CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, OrderStockTabComponent as ɵba, StockLocationComponent as ɵbb, StockHistoryComponent as ɵbc, OrderSupplyStockHistoryComponent as ɵbd, OrderCommissionStockHistoryComponent as ɵbe, OrderStockHistoryComponent as ɵbf, AllocationStockHistoryComponent as ɵbg, SendMethod as ɵbh, Icon as ɵbi, CalendarAllYearsComponent as ɵbj, CalendarAllMonthsComponent as ɵbk, CalendarHeaderComponent as ɵbl, CalendarComponent as ɵbm, CalendarViewComponent as ɵbn, LanguageCode as ɵbo, AgendaHeaderComponent as ɵbp, AgendaViewComponent as ɵbq, AgendaMonthViewComponent as ɵbr, AgendaBaseViewComponent as ɵbs, AgendaDayViewComponent as ɵbt, AgendaWeekViewComponent as ɵbu, AgendaWeekSelectViewComponent as ɵbv, AgendaHourViewComponent as ɵbw, AgendaHourCellComponent as ɵbx, AgendaHourViewLabelsComponent as ɵby, AgendaHalfHourCellComponent as ɵbz, StockService as ɵc, AgendaEventsComponent as ɵca, AgendaEventComponent as ɵcb, ViewSelectComponent as ɵcc, AgendaSelectEventComponent as ɵcd, MASTER_PIPES as ɵce, ArrayNumberPipe as ɵcf, UCfirstPipe as ɵcg, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, IconCacheService as ɵg, SendMethodService as ɵh, SendMethodEmailModule as ɵi, LayoutSelectionModule as ɵj, LayoutSelectionComponent as ɵk, SendMethodEmailComponent as ɵl, SendMethodPrinterModule as ɵm, PrinterSelectionModule as ɵn, PrinterSelectionComponent as ɵo, SendMethodPrinterComponent as ɵp, TabBarModule as ɵq, TabBarComponent as ɵr, StockInformationComponent as ɵs, StockInformationGridComponent as ɵt, StockTransferComponent as ɵu, StockChangeAmountComponent as ɵv, StockTabComponent as ɵw, OrderTabComponent as ɵx, StockTabsComponent as ɵy, StockHistoryTabsComponent as ɵz };
5237
5973
  //# sourceMappingURL=colijnit-sharedcomponents.js.map