@colijnit/sharedcomponents 262.1.21 → 262.1.22
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.
|
@@ -1634,6 +1634,18 @@ class SharedConnectorService {
|
|
|
1634
1634
|
});
|
|
1635
1635
|
});
|
|
1636
1636
|
}
|
|
1637
|
+
async getBranchesByWarehouseNumber(warehouseNo) {
|
|
1638
|
+
return new Promise((resolve, reject) => {
|
|
1639
|
+
return this.mainConnector.getBranchesByWarehouseNumber(warehouseNo).then((result) => {
|
|
1640
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1641
|
+
resolve(result.resultObjects);
|
|
1642
|
+
}
|
|
1643
|
+
else {
|
|
1644
|
+
reject(result.validationResult.messages[0].message);
|
|
1645
|
+
}
|
|
1646
|
+
});
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1637
1649
|
async getStockStickerEmailLayouts() {
|
|
1638
1650
|
return new Promise((resolve, reject) => {
|
|
1639
1651
|
return this.mainConnector.getStockStickerEmailLayouts().then((result) => {
|
|
@@ -1910,6 +1922,9 @@ class StockService {
|
|
|
1910
1922
|
async searchArticles(request) {
|
|
1911
1923
|
return await this._sharedService.searchArticles(request);
|
|
1912
1924
|
}
|
|
1925
|
+
async getBranchesByWarehouseNumber(warehouseNo) {
|
|
1926
|
+
return await this._sharedService.getBranchesByWarehouseNumber(warehouseNo);
|
|
1927
|
+
}
|
|
1913
1928
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StockService, deps: [{ token: SharedConnectorService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1914
1929
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StockService, providedIn: 'root' });
|
|
1915
1930
|
}
|
|
@@ -6099,6 +6114,7 @@ class StockLocationPopupComponent {
|
|
|
6099
6114
|
this.disabled = articleDetails.stockStateId && articleDetails.stockStateRemark?.length <= 1;
|
|
6100
6115
|
}
|
|
6101
6116
|
}
|
|
6117
|
+
branches = [];
|
|
6102
6118
|
set setArticleFlat(article) {
|
|
6103
6119
|
this.articleFlat = article;
|
|
6104
6120
|
}
|
|
@@ -6118,6 +6134,7 @@ class StockLocationPopupComponent {
|
|
|
6118
6134
|
saveEvent = new EventEmitter();
|
|
6119
6135
|
stockLocations = [];
|
|
6120
6136
|
stockStatus = [];
|
|
6137
|
+
selectedBranch;
|
|
6121
6138
|
stockBelow = false;
|
|
6122
6139
|
validationMessage = '';
|
|
6123
6140
|
constructor(iconCacheService, _stockService) {
|
|
@@ -6182,6 +6199,13 @@ class StockLocationPopupComponent {
|
|
|
6182
6199
|
handleSelectedStockState(event) {
|
|
6183
6200
|
this.selectedArticleDetailsData.stockStateId = event.stockStateId;
|
|
6184
6201
|
}
|
|
6202
|
+
handleBranchChange(branch) {
|
|
6203
|
+
this.selectedBranch = branch;
|
|
6204
|
+
this.selectedArticleDetailsData.branchNo = branch.relationNumber;
|
|
6205
|
+
}
|
|
6206
|
+
newDate() {
|
|
6207
|
+
return new Date();
|
|
6208
|
+
}
|
|
6185
6209
|
validateForm() {
|
|
6186
6210
|
if (this.deleteStockLine) {
|
|
6187
6211
|
return null;
|
|
@@ -6206,7 +6230,7 @@ class StockLocationPopupComponent {
|
|
|
6206
6230
|
return null;
|
|
6207
6231
|
}
|
|
6208
6232
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StockLocationPopupComponent, deps: [{ token: IconCacheService }, { token: StockService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6209
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: StockLocationPopupComponent, isStandalone: false, selector: "co-stock-location-popup", inputs: { articleExtended: "articleExtended", editingRow: "editingRow", newStockLine: "newStockLine", deleteStockLine: "deleteStockLine", setSelectedArticleDetailsData: "setSelectedArticleDetailsData", setArticleFlat: "setArticleFlat", articleDetailsInformation: "articleDetailsInformation", selectedWarehouse: "selectedWarehouse", selectedLocationNo: "selectedLocationNo", setArticleStockInfo: "setArticleStockInfo", stockLocations: "stockLocations", stockStatus: "stockStatus" }, outputs: { togglePopupEvent: "togglePopupEvent", saveEvent: "saveEvent" }, ngImport: i0, template: `
|
|
6233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: StockLocationPopupComponent, isStandalone: false, selector: "co-stock-location-popup", inputs: { articleExtended: "articleExtended", editingRow: "editingRow", newStockLine: "newStockLine", deleteStockLine: "deleteStockLine", setSelectedArticleDetailsData: "setSelectedArticleDetailsData", branches: "branches", setArticleFlat: "setArticleFlat", articleDetailsInformation: "articleDetailsInformation", selectedWarehouse: "selectedWarehouse", selectedLocationNo: "selectedLocationNo", setArticleStockInfo: "setArticleStockInfo", stockLocations: "stockLocations", stockStatus: "stockStatus" }, outputs: { togglePopupEvent: "togglePopupEvent", saveEvent: "saveEvent" }, ngImport: i0, template: `
|
|
6210
6234
|
<div class="stock-grid">
|
|
6211
6235
|
<co-dialog
|
|
6212
6236
|
[showCloseIcon]="true"
|
|
@@ -6307,6 +6331,12 @@ class StockLocationPopupComponent {
|
|
|
6307
6331
|
</div>
|
|
6308
6332
|
|
|
6309
6333
|
</div>
|
|
6334
|
+
|
|
6335
|
+
<div class="stock-dialog-row">
|
|
6336
|
+
<co-list-of-values [label]="'BRANCH' | sharedLocalize" [displayField]="'lastName'" [collection]="branches" [model]="selectedBranch" (modelChange)="handleBranchChange($event)"></co-list-of-values>
|
|
6337
|
+
<span class="filler"></span>
|
|
6338
|
+
</div>
|
|
6339
|
+
|
|
6310
6340
|
</div>
|
|
6311
6341
|
}
|
|
6312
6342
|
<ng-template #footerTemplate>
|
|
@@ -6437,6 +6467,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6437
6467
|
</div>
|
|
6438
6468
|
|
|
6439
6469
|
</div>
|
|
6470
|
+
|
|
6471
|
+
<div class="stock-dialog-row">
|
|
6472
|
+
<co-list-of-values [label]="'BRANCH' | sharedLocalize" [displayField]="'lastName'" [collection]="branches" [model]="selectedBranch" (modelChange)="handleBranchChange($event)"></co-list-of-values>
|
|
6473
|
+
<span class="filler"></span>
|
|
6474
|
+
</div>
|
|
6475
|
+
|
|
6440
6476
|
</div>
|
|
6441
6477
|
}
|
|
6442
6478
|
<ng-template #footerTemplate>
|
|
@@ -6474,6 +6510,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6474
6510
|
type: Input
|
|
6475
6511
|
}], setSelectedArticleDetailsData: [{
|
|
6476
6512
|
type: Input
|
|
6513
|
+
}], branches: [{
|
|
6514
|
+
type: Input
|
|
6477
6515
|
}], setArticleFlat: [{
|
|
6478
6516
|
type: Input
|
|
6479
6517
|
}], articleDetailsInformation: [{
|
|
@@ -6532,6 +6570,7 @@ class StockLocationComponent extends BaseStockComponent {
|
|
|
6532
6570
|
data = [];
|
|
6533
6571
|
selectedWarehouse;
|
|
6534
6572
|
stockLocations = [];
|
|
6573
|
+
branches = [];
|
|
6535
6574
|
stockStickerPrintRequest = new PrintStockStickersRequest();
|
|
6536
6575
|
selectedRow;
|
|
6537
6576
|
showSendMethodDialog = false;
|
|
@@ -6546,6 +6585,9 @@ class StockLocationComponent extends BaseStockComponent {
|
|
|
6546
6585
|
ngOnInit() {
|
|
6547
6586
|
this._stockService.getStockState().then(result => {
|
|
6548
6587
|
this.stockStatus = result;
|
|
6588
|
+
this._stockService.getBranchesByWarehouseNumber(this.selectedWarehouse.warehouseNo).then((branches) => {
|
|
6589
|
+
this.branches = branches;
|
|
6590
|
+
});
|
|
6549
6591
|
});
|
|
6550
6592
|
}
|
|
6551
6593
|
ngOnDestroy() {
|
|
@@ -6643,6 +6685,7 @@ class StockLocationComponent extends BaseStockComponent {
|
|
|
6643
6685
|
@if (showConfirmationDialog) {
|
|
6644
6686
|
<co-stock-location-popup
|
|
6645
6687
|
[articleExtended]="article"
|
|
6688
|
+
[branches]="branches"
|
|
6646
6689
|
[selectedWarehouse]="selectedWarehouse"
|
|
6647
6690
|
[setArticleFlat]="articleFlat"
|
|
6648
6691
|
[selectedLocationNo]="selectedLocationNo"
|
|
@@ -6739,7 +6782,7 @@ class StockLocationComponent extends BaseStockComponent {
|
|
|
6739
6782
|
@if (showSendMethodDialog) {
|
|
6740
6783
|
<co-stock-print-sticker (close)="showSendMethodDialog = false"></co-stock-print-sticker>
|
|
6741
6784
|
}
|
|
6742
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i3.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i3.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i3.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i3.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: StockPrintStickerComponent, selector: "co-stock-print-sticker", inputs: ["reportDocumentPrintRequest"], outputs: ["close"] }, { kind: "component", type: StockTransferComponent, selector: "co-stock-transfer", inputs: ["stockSticker", "article", "articleToTransfer", "allWarehouses", "selectedArticleDetailsData", "articleFlat", "articleDetailsInformation", "selectedWarehouse", "selectedLocationNo", "articleStockInfo", "stockLocations"], outputs: ["handleStickerClicked", "handleTogglePopup"] }, { kind: "component", type: StockLocationPopupComponent, selector: "co-stock-location-popup", inputs: ["articleExtended", "editingRow", "newStockLine", "deleteStockLine", "setSelectedArticleDetailsData", "setArticleFlat", "articleDetailsInformation", "selectedWarehouse", "selectedLocationNo", "setArticleStockInfo", "stockLocations", "stockStatus"], outputs: ["togglePopupEvent", "saveEvent"] }, { kind: "pipe", type: SharedLocalizePipe, name: "sharedLocalize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
6785
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i3.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i3.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i3.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i3.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: StockPrintStickerComponent, selector: "co-stock-print-sticker", inputs: ["reportDocumentPrintRequest"], outputs: ["close"] }, { kind: "component", type: StockTransferComponent, selector: "co-stock-transfer", inputs: ["stockSticker", "article", "articleToTransfer", "allWarehouses", "selectedArticleDetailsData", "articleFlat", "articleDetailsInformation", "selectedWarehouse", "selectedLocationNo", "articleStockInfo", "stockLocations"], outputs: ["handleStickerClicked", "handleTogglePopup"] }, { kind: "component", type: StockLocationPopupComponent, selector: "co-stock-location-popup", inputs: ["articleExtended", "editingRow", "newStockLine", "deleteStockLine", "setSelectedArticleDetailsData", "branches", "setArticleFlat", "articleDetailsInformation", "selectedWarehouse", "selectedLocationNo", "setArticleStockInfo", "stockLocations", "stockStatus"], outputs: ["togglePopupEvent", "saveEvent"] }, { kind: "pipe", type: SharedLocalizePipe, name: "sharedLocalize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
6743
6786
|
}
|
|
6744
6787
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StockLocationComponent, decorators: [{
|
|
6745
6788
|
type: Component,
|
|
@@ -6764,6 +6807,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6764
6807
|
@if (showConfirmationDialog) {
|
|
6765
6808
|
<co-stock-location-popup
|
|
6766
6809
|
[articleExtended]="article"
|
|
6810
|
+
[branches]="branches"
|
|
6767
6811
|
[selectedWarehouse]="selectedWarehouse"
|
|
6768
6812
|
[setArticleFlat]="articleFlat"
|
|
6769
6813
|
[selectedLocationNo]="selectedLocationNo"
|