@colijnit/sharedcomponents 1.0.36 → 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.
- package/bundles/colijnit-sharedcomponents.umd.js +649 -171
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +43 -31
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +44 -32
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +3 -3
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +3 -3
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +46 -0
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +46 -0
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +46 -0
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +46 -0
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +46 -0
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +65 -0
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +68 -0
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +170 -0
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +38 -0
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +34 -0
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +3 -4
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +1 -4
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +173 -0
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +9 -11
- package/esm2015/lib/components/stock/stock.component.js +26 -44
- package/esm2015/lib/components/stock/stock.module.js +29 -6
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +45 -0
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +19 -0
- package/esm2015/lib/components/tab-bar/tab.interface.js +2 -0
- package/esm2015/lib/pipe/array-number.pipe.js +1 -1
- package/esm2015/lib/service/shared-connector.service.js +1 -18
- package/esm2015/lib/service/stock.service.js +1 -6
- package/fesm2015/colijnit-sharedcomponents.js +852 -151
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -0
- package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -0
- package/lib/components/stock/components/stock-history/stock-history.component.d.ts +15 -0
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +38 -0
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +8 -0
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +8 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -1
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +46 -0
- package/lib/components/stock/stock.component.d.ts +2 -6
- package/lib/components/stock/style/_layout.scss +5 -3
- package/lib/components/tab-bar/style/_layout.scss +60 -0
- package/lib/components/tab-bar/style/_material-definition.scss +0 -0
- package/lib/components/tab-bar/style/_theme.scss +0 -0
- package/lib/components/tab-bar/style/material.scss +4 -0
- package/lib/components/tab-bar/tab-bar.component.d.ts +9 -0
- package/lib/components/tab-bar/tab-bar.module.d.ts +2 -0
- package/lib/components/tab-bar/tab.interface.d.ts +5 -0
- package/lib/service/shared-connector.service.d.ts +0 -1
- package/lib/service/stock.service.d.ts +0 -1
- package/package.json +1 -1
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
- package/esm2015/lib/model/stock-status.model.js +0 -3
- package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -15
- package/lib/model/stock-status.model.d.ts +0 -6
|
@@ -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
|
|
|
@@ -608,9 +608,6 @@ OptionsService.ctorParameters = () => [
|
|
|
608
608
|
{ type: DictionaryService }
|
|
609
609
|
];
|
|
610
610
|
|
|
611
|
-
class ArticleStockStatus {
|
|
612
|
-
}
|
|
613
|
-
|
|
614
611
|
class SharedConnectorService {
|
|
615
612
|
constructor(_optionsService) {
|
|
616
613
|
this._optionsService = _optionsService;
|
|
@@ -846,22 +843,6 @@ class SharedConnectorService {
|
|
|
846
843
|
});
|
|
847
844
|
});
|
|
848
845
|
}
|
|
849
|
-
getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId) {
|
|
850
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
851
|
-
return new Promise((resolve, reject) => {
|
|
852
|
-
return this.articleConnector.getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId).then((result) => {
|
|
853
|
-
if (result.validationResult && result.validationResult.success) {
|
|
854
|
-
if (result.resultObjects) {
|
|
855
|
-
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockStatus, result.resultObjects));
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
else {
|
|
859
|
-
reject(result.validationMessagesAsString);
|
|
860
|
-
}
|
|
861
|
-
});
|
|
862
|
-
});
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
846
|
// public async getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
|
|
866
847
|
// return new Promise((resolve: Function, reject: Function) => {
|
|
867
848
|
// return this.mainConnector.getStockStickerPrintLayouts(data).then((result: DataServiceResponseData) => {
|
|
@@ -943,11 +924,6 @@ class StockService {
|
|
|
943
924
|
return yield this._sharedService.getStockStatus();
|
|
944
925
|
});
|
|
945
926
|
}
|
|
946
|
-
getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId) {
|
|
947
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
948
|
-
return yield this._sharedService.getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId);
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
927
|
// public async getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
|
|
952
928
|
// return await this._sharedService.getStockStickerTemplates(data);
|
|
953
929
|
// }
|
|
@@ -1004,11 +980,10 @@ class StockComponent {
|
|
|
1004
980
|
this.okButtonClicked = new EventEmitter();
|
|
1005
981
|
this.cancelButtonClicked = new EventEmitter();
|
|
1006
982
|
this.showStockInformationGrid = true;
|
|
1007
|
-
this.showStockLocation = false;
|
|
1008
983
|
this.showStockTransfer = false;
|
|
1009
984
|
this.allAvailableStock = 0;
|
|
1010
985
|
this.allTechnicalStock = 0;
|
|
1011
|
-
this.
|
|
986
|
+
this.showSendMethodDialog = false;
|
|
1012
987
|
this._subscriptions = [];
|
|
1013
988
|
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(loaded => this._handleSettingsLoaded(loaded)));
|
|
1014
989
|
}
|
|
@@ -1023,28 +998,20 @@ class StockComponent {
|
|
|
1023
998
|
ngOnDestroy() {
|
|
1024
999
|
this._subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
1025
1000
|
}
|
|
1026
|
-
backToStockLinesClicked() {
|
|
1027
|
-
this.showStockLocation = false;
|
|
1028
|
-
this.showStockInformationGrid = true;
|
|
1029
|
-
}
|
|
1030
1001
|
handleStockTransferClick(event) {
|
|
1031
1002
|
this.stockTransferArticleDetails = event;
|
|
1032
1003
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1033
1004
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1034
1005
|
this.stockService.stockStickers = new PrintStockStickers();
|
|
1035
1006
|
}
|
|
1007
|
+
handleSendMethodClick(event) {
|
|
1008
|
+
this.showSendMethodDialog = true;
|
|
1009
|
+
console.log(event);
|
|
1010
|
+
}
|
|
1036
1011
|
backToStock() {
|
|
1037
1012
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1038
1013
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1039
1014
|
}
|
|
1040
|
-
getStockHistory() {
|
|
1041
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1042
|
-
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
1043
|
-
stockHistoryInformation.type = "B";
|
|
1044
|
-
stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
|
|
1045
|
-
this.stockHistory = yield this.stockService.getStockHistory(stockHistoryInformation);
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
1015
|
getStockInformation(data) {
|
|
1049
1016
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
1017
|
const articleData = new ArticleStock$1();
|
|
@@ -1053,12 +1020,8 @@ class StockComponent {
|
|
|
1053
1020
|
this.stockInformation = yield this.stockService.getStockInformation(articleData);
|
|
1054
1021
|
this.stockInformation.forEach((articleStock) => this.allAvailableStock += articleStock.availableStock);
|
|
1055
1022
|
this.stockInformation.forEach((articleStock) => this.allTechnicalStock += articleStock.technicalStock);
|
|
1056
|
-
this.stockInformation.forEach((articleStock) => this.allAmountLaterAvailable += articleStock.economicalStock);
|
|
1057
1023
|
});
|
|
1058
1024
|
}
|
|
1059
|
-
getArtStockStatus() {
|
|
1060
|
-
console.log(this.stockService.getArtStockStatus(this.articleExtended.goodId));
|
|
1061
|
-
}
|
|
1062
1025
|
_handleSettingsLoaded(loaded) {
|
|
1063
1026
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
1027
|
if (loaded) {
|
|
@@ -1088,34 +1051,30 @@ StockComponent.decorators = [
|
|
|
1088
1051
|
[articleStock]=""
|
|
1089
1052
|
[allAvailableStockInformation]="allAvailableStock"
|
|
1090
1053
|
[allTechnicalStockInformation]="allTechnicalStock"
|
|
1091
|
-
[allAmountLaterAvailable]="allAmountLaterAvailable"
|
|
1092
1054
|
>
|
|
1093
1055
|
</co-stock-information>
|
|
1094
1056
|
<hr>
|
|
1095
|
-
<co-stock-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
(historyClicked)="getStockHistory()"
|
|
1101
|
-
[stockHistoryInformation]="stockHistory"
|
|
1102
|
-
(okButtonClicked)="okButtonClicked.emit()"
|
|
1103
|
-
(cancelButtonClicked)="cancelButtonClicked.emit()"
|
|
1104
|
-
>
|
|
1105
|
-
</co-stock-information-grid>
|
|
1106
|
-
<co-stock-location *ngIf="showStockLocation"
|
|
1107
|
-
(backToStockLines)="backToStockLinesClicked()">
|
|
1057
|
+
<co-stock-tabs [stockInformation]="stockInformation"
|
|
1058
|
+
[article]="articleExtended"
|
|
1059
|
+
(transferIconClicked)="handleStockTransferClick($event)"
|
|
1060
|
+
(sendMethodDialogClicked)="handleSendMethodClick($event)"
|
|
1061
|
+
></co-stock-tabs>
|
|
1108
1062
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
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>
|
|
1119
1078
|
</div>
|
|
1120
1079
|
`,
|
|
1121
1080
|
encapsulation: ViewEncapsulation.None
|
|
@@ -1176,7 +1135,7 @@ StockInformationComponent.decorators = [
|
|
|
1176
1135
|
</div>
|
|
1177
1136
|
<div class="stock-status">
|
|
1178
1137
|
<label [textContent]="'AMOUNT_LATER_AVAILABLE'"></label>
|
|
1179
|
-
<span [textContent]="
|
|
1138
|
+
<span [textContent]=""></span>
|
|
1180
1139
|
</div>
|
|
1181
1140
|
</div>
|
|
1182
1141
|
`,
|
|
@@ -1188,8 +1147,7 @@ StockInformationComponent.propDecorators = {
|
|
|
1188
1147
|
article: [{ type: Input }],
|
|
1189
1148
|
articleStock: [{ type: Input }],
|
|
1190
1149
|
allAvailableStockInformation: [{ type: Input }],
|
|
1191
|
-
allTechnicalStockInformation: [{ type: Input }]
|
|
1192
|
-
allAmountLaterAvailable: [{ type: Input }]
|
|
1150
|
+
allTechnicalStockInformation: [{ type: Input }]
|
|
1193
1151
|
};
|
|
1194
1152
|
|
|
1195
1153
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
@@ -1442,12 +1400,10 @@ class StockInformationGridComponent {
|
|
|
1442
1400
|
});
|
|
1443
1401
|
}
|
|
1444
1402
|
onLocationSelected(location) {
|
|
1445
|
-
console.log(location);
|
|
1446
1403
|
this.selectedArticleDetailsData.locationNo = location;
|
|
1447
1404
|
}
|
|
1448
1405
|
onOkClickSendLocations() {
|
|
1449
1406
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1450
|
-
console.log(this.article);
|
|
1451
1407
|
this.selectedArticleDetailsData.selected = true;
|
|
1452
1408
|
this.selectedArticleDetailsData.goodId = this.article.goodId;
|
|
1453
1409
|
this.selectedArticleDetailsData.entryDate = new Date();
|
|
@@ -1589,7 +1545,6 @@ StockInformationGridComponent.decorators = [
|
|
|
1589
1545
|
[collection]="stockLocations"
|
|
1590
1546
|
[fields]="dataLocationFields"
|
|
1591
1547
|
[placeholder]="'LOCATION'"
|
|
1592
|
-
(modelChange)="onLocationSelected($event)"
|
|
1593
1548
|
(click)="onLocationDropdownClick()"
|
|
1594
1549
|
[required]="true"
|
|
1595
1550
|
></co-drop-down-list>
|
|
@@ -1740,66 +1695,6 @@ StockInformationGridComponent.propDecorators = {
|
|
|
1740
1695
|
okButtonClicked: [{ type: Output }]
|
|
1741
1696
|
};
|
|
1742
1697
|
|
|
1743
|
-
class StockLocationComponent {
|
|
1744
|
-
constructor(_stockService) {
|
|
1745
|
-
this._stockService = _stockService;
|
|
1746
|
-
this.backToStockLines = new EventEmitter();
|
|
1747
|
-
this.stockLocationColumns = [];
|
|
1748
|
-
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" });
|
|
1749
|
-
}
|
|
1750
|
-
backToStockInformation() {
|
|
1751
|
-
this.backToStockLines.emit();
|
|
1752
|
-
}
|
|
1753
|
-
onOkClick() {
|
|
1754
|
-
}
|
|
1755
|
-
onCancelClick() {
|
|
1756
|
-
}
|
|
1757
|
-
onSelectWarehouse(event) {
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
StockLocationComponent.decorators = [
|
|
1761
|
-
{ type: Component, args: [{
|
|
1762
|
-
selector: "co-stock-location",
|
|
1763
|
-
template: `
|
|
1764
|
-
<div class="stock-location-wrapper">
|
|
1765
|
-
<div class="buttons-wrapper">
|
|
1766
|
-
<div class="stock-button-left-group">
|
|
1767
|
-
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
|
|
1768
|
-
</div>
|
|
1769
|
-
<div class="dropdown-wrapper">
|
|
1770
|
-
<co-drop-down-list
|
|
1771
|
-
[collection]="allWarehouses"
|
|
1772
|
-
[placeholder]="'WAREHOUSES'"
|
|
1773
|
-
(modelChange)="onSelectWarehouse($event)"
|
|
1774
|
-
></co-drop-down-list>
|
|
1775
|
-
</div>
|
|
1776
|
-
</div>
|
|
1777
|
-
|
|
1778
|
-
<div class="stock-grid">
|
|
1779
|
-
|
|
1780
|
-
</div>
|
|
1781
|
-
<div class="button-wrapper">
|
|
1782
|
-
<div class="button-left">
|
|
1783
|
-
<co-button (click)="onOkClick()"></co-button>
|
|
1784
|
-
</div>
|
|
1785
|
-
<div class="button-right">
|
|
1786
|
-
<co-button (click)="onCancelClick()"></co-button>
|
|
1787
|
-
</div>
|
|
1788
|
-
</div>
|
|
1789
|
-
</div>
|
|
1790
|
-
|
|
1791
|
-
`,
|
|
1792
|
-
encapsulation: ViewEncapsulation.None
|
|
1793
|
-
},] }
|
|
1794
|
-
];
|
|
1795
|
-
StockLocationComponent.ctorParameters = () => [
|
|
1796
|
-
{ type: StockService }
|
|
1797
|
-
];
|
|
1798
|
-
StockLocationComponent.propDecorators = {
|
|
1799
|
-
stockLocationInformation: [{ type: Input }],
|
|
1800
|
-
backToStockLines: [{ type: Output }]
|
|
1801
|
-
};
|
|
1802
|
-
|
|
1803
1698
|
class StockTransferComponent {
|
|
1804
1699
|
constructor(_stockService) {
|
|
1805
1700
|
this._stockService = _stockService;
|
|
@@ -1871,16 +1766,14 @@ StockTransferComponent.decorators = [
|
|
|
1871
1766
|
[textContent]="articleToTransfer.locationNo"
|
|
1872
1767
|
[placeholder]="'Standaard locatie'">
|
|
1873
1768
|
</co-input-text>
|
|
1874
|
-
<co-input-text
|
|
1875
|
-
|
|
1876
|
-
[
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
[placeholder]="'Serie'">
|
|
1883
|
-
</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>-->
|
|
1884
1777
|
<co-input-text
|
|
1885
1778
|
[(model)]="articleToTransfer.amountTransfer"
|
|
1886
1779
|
[placeholder]="'Aantal'">
|
|
@@ -2667,6 +2560,802 @@ StockChangeAmountComponent.propDecorators = {
|
|
|
2667
2560
|
closeStockChangeAmount: [{ type: Output }]
|
|
2668
2561
|
};
|
|
2669
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
|
+
|
|
2670
3359
|
class StockModule {
|
|
2671
3360
|
}
|
|
2672
3361
|
StockModule.decorators = [
|
|
@@ -2685,15 +3374,27 @@ StockModule.decorators = [
|
|
|
2685
3374
|
IconModule,
|
|
2686
3375
|
InputNumberPickerModule,
|
|
2687
3376
|
CoDialogWizardModule,
|
|
2688
|
-
InputTextareaModule
|
|
3377
|
+
InputTextareaModule,
|
|
3378
|
+
TabBarModule,
|
|
3379
|
+
CoDialogModule
|
|
2689
3380
|
],
|
|
2690
3381
|
declarations: [
|
|
2691
3382
|
StockComponent,
|
|
2692
3383
|
StockInformationComponent,
|
|
2693
3384
|
StockInformationGridComponent,
|
|
2694
|
-
StockLocationComponent,
|
|
2695
3385
|
StockTransferComponent,
|
|
2696
|
-
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
|
|
2697
3398
|
],
|
|
2698
3399
|
exports: [
|
|
2699
3400
|
StockComponent
|
|
@@ -3122,7 +3823,7 @@ class CoCircularGaugeComponent {
|
|
|
3122
3823
|
}
|
|
3123
3824
|
}
|
|
3124
3825
|
_setColor() {
|
|
3125
|
-
if (this.value
|
|
3826
|
+
if (this.value <= 0) {
|
|
3126
3827
|
this._color = GaugeColor.Lowest;
|
|
3127
3828
|
}
|
|
3128
3829
|
else if (this.value >= 1 && this.value < 25) {
|
|
@@ -3137,7 +3838,7 @@ class CoCircularGaugeComponent {
|
|
|
3137
3838
|
else if (this.value >= 75 && this.value < 100) {
|
|
3138
3839
|
this._color = GaugeColor.High;
|
|
3139
3840
|
}
|
|
3140
|
-
else if (this.value
|
|
3841
|
+
else if (this.value >= 100) {
|
|
3141
3842
|
this._color = GaugeColor.Highest;
|
|
3142
3843
|
}
|
|
3143
3844
|
}
|
|
@@ -3198,7 +3899,7 @@ class CoLinearGaugeComponent {
|
|
|
3198
3899
|
return `linear-gradient(90deg, ${this.color} 0 ${this.value}%, white ${this.value}% 100%`;
|
|
3199
3900
|
}
|
|
3200
3901
|
_setColor() {
|
|
3201
|
-
if (this.value
|
|
3902
|
+
if (this.value <= 0) {
|
|
3202
3903
|
this.color = GaugeColor.Lowest;
|
|
3203
3904
|
}
|
|
3204
3905
|
else if (this.value >= 1 && this.value < 25) {
|
|
@@ -3213,7 +3914,7 @@ class CoLinearGaugeComponent {
|
|
|
3213
3914
|
else if (this.value >= 75 && this.value < 100) {
|
|
3214
3915
|
this.color = GaugeColor.High;
|
|
3215
3916
|
}
|
|
3216
|
-
else if (this.value
|
|
3917
|
+
else if (this.value >= 100) {
|
|
3217
3918
|
this.color = GaugeColor.Highest;
|
|
3218
3919
|
}
|
|
3219
3920
|
}
|
|
@@ -5268,5 +5969,5 @@ DatePlanningModule.decorators = [
|
|
|
5268
5969
|
* Generated bundle index. Do not edit.
|
|
5269
5970
|
*/
|
|
5270
5971
|
|
|
5271
|
-
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,
|
|
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 };
|
|
5272
5973
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|