@colijnit/sharedcomponents 259.1.25 → 259.1.27
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 +9 -13
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +10 -14
- package/fesm2015/colijnit-sharedcomponents.js +9 -13
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/package.json +1 -1
|
@@ -6590,12 +6590,11 @@
|
|
|
6590
6590
|
return ((_a = this.stockLocations) === null || _a === void 0 ? void 0 : _a.find(function (location) { return location.locationNo === number; })) ? (_b = this.stockLocations) === null || _b === void 0 ? void 0 : _b.find(function (location) { return location.locationNo === number; }) : "";
|
|
6591
6591
|
};
|
|
6592
6592
|
StockLocationPopupComponent.prototype.locationChanged = function (event) {
|
|
6593
|
-
var _a;
|
|
6594
6593
|
this.selectedLocationNo = event.locationNo;
|
|
6595
6594
|
this.selectedArticleDetailsData.locationNo = event.locationNo;
|
|
6596
|
-
if (
|
|
6597
|
-
|
|
6598
|
-
}
|
|
6595
|
+
//if (this.articleStockInfo?.length === 1) {
|
|
6596
|
+
// this.handleStockChange();
|
|
6597
|
+
//}
|
|
6599
6598
|
this.getStockLocations();
|
|
6600
6599
|
};
|
|
6601
6600
|
StockLocationPopupComponent.prototype.handleStockChange = function () {
|
|
@@ -6636,24 +6635,21 @@
|
|
|
6636
6635
|
return new Date();
|
|
6637
6636
|
};
|
|
6638
6637
|
StockLocationPopupComponent.prototype.validateForm = function () {
|
|
6639
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
|
6638
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6640
6639
|
if (this.deleteStockLine) {
|
|
6641
6640
|
return null;
|
|
6642
6641
|
}
|
|
6643
|
-
if (
|
|
6644
|
-
return 'WAREHOUSE_IS_REQUIRED';
|
|
6645
|
-
}
|
|
6646
|
-
if (((_b = this.articleFlat) === null || _b === void 0 ? void 0 : _b.locationRegistered) && !((_d = (_c = this.selectedArticleDetailsData) === null || _c === void 0 ? void 0 : _c.locationNo) === null || _d === void 0 ? void 0 : _d.trim())) {
|
|
6642
|
+
if (((_a = this.articleFlat) === null || _a === void 0 ? void 0 : _a.locationRegistered) && !((_c = (_b = this.selectedArticleDetailsData) === null || _b === void 0 ? void 0 : _b.locationNo) === null || _c === void 0 ? void 0 : _c.trim())) {
|
|
6647
6643
|
return 'LOCATION_IS_REQUIRED';
|
|
6648
6644
|
}
|
|
6649
|
-
if (((
|
|
6645
|
+
if (((_d = this.articleFlat) === null || _d === void 0 ? void 0 : _d.serial) && !((_f = (_e = this.selectedArticleDetailsData) === null || _e === void 0 ? void 0 : _e.serialNo) === null || _f === void 0 ? void 0 : _f.trim())) {
|
|
6650
6646
|
return 'SERIAL_NR_IS_REQUIRED';
|
|
6651
6647
|
}
|
|
6652
|
-
if (((
|
|
6648
|
+
if (((_g = this.articleFlat) === null || _g === void 0 ? void 0 : _g.batch) && !((_j = (_h = this.selectedArticleDetailsData) === null || _h === void 0 ? void 0 : _h.batchNo) === null || _j === void 0 ? void 0 : _j.trim())) {
|
|
6653
6649
|
return 'BATCH_IS_REQUIRED';
|
|
6654
6650
|
}
|
|
6655
|
-
if (((
|
|
6656
|
-
((
|
|
6651
|
+
if (((_k = this.selectedArticleDetailsData) === null || _k === void 0 ? void 0 : _k.amountInStock) === null ||
|
|
6652
|
+
((_l = this.selectedArticleDetailsData) === null || _l === void 0 ? void 0 : _l.amountInStock) === undefined) {
|
|
6657
6653
|
return 'STOCK_IS_REQUIRED';
|
|
6658
6654
|
}
|
|
6659
6655
|
return null;
|