@colijnit/sharedcomponents 260.1.17 → 260.1.19
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
|
@@ -6614,12 +6614,11 @@
|
|
|
6614
6614
|
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; }) : "";
|
|
6615
6615
|
};
|
|
6616
6616
|
StockLocationPopupComponent.prototype.locationChanged = function (event) {
|
|
6617
|
-
var _a;
|
|
6618
6617
|
this.selectedLocationNo = event.locationNo;
|
|
6619
6618
|
this.selectedArticleDetailsData.locationNo = event.locationNo;
|
|
6620
|
-
if (
|
|
6621
|
-
|
|
6622
|
-
}
|
|
6619
|
+
//if (this.articleStockInfo?.length === 1) {
|
|
6620
|
+
// this.handleStockChange();
|
|
6621
|
+
//}
|
|
6623
6622
|
this.getStockLocations();
|
|
6624
6623
|
};
|
|
6625
6624
|
StockLocationPopupComponent.prototype.handleStockChange = function () {
|
|
@@ -6660,24 +6659,21 @@
|
|
|
6660
6659
|
return new Date();
|
|
6661
6660
|
};
|
|
6662
6661
|
StockLocationPopupComponent.prototype.validateForm = function () {
|
|
6663
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
|
6662
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6664
6663
|
if (this.deleteStockLine) {
|
|
6665
6664
|
return null;
|
|
6666
6665
|
}
|
|
6667
|
-
if (
|
|
6668
|
-
return 'WAREHOUSE_IS_REQUIRED';
|
|
6669
|
-
}
|
|
6670
|
-
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())) {
|
|
6666
|
+
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())) {
|
|
6671
6667
|
return 'LOCATION_IS_REQUIRED';
|
|
6672
6668
|
}
|
|
6673
|
-
if (((
|
|
6669
|
+
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())) {
|
|
6674
6670
|
return 'SERIAL_NR_IS_REQUIRED';
|
|
6675
6671
|
}
|
|
6676
|
-
if (((
|
|
6672
|
+
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())) {
|
|
6677
6673
|
return 'BATCH_IS_REQUIRED';
|
|
6678
6674
|
}
|
|
6679
|
-
if (((
|
|
6680
|
-
((
|
|
6675
|
+
if (((_k = this.selectedArticleDetailsData) === null || _k === void 0 ? void 0 : _k.amountInStock) === null ||
|
|
6676
|
+
((_l = this.selectedArticleDetailsData) === null || _l === void 0 ? void 0 : _l.amountInStock) === undefined) {
|
|
6681
6677
|
return 'STOCK_IS_REQUIRED';
|
|
6682
6678
|
}
|
|
6683
6679
|
return null;
|