mobicloud-core 1.0.133 → 1.0.134

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.
@@ -4699,7 +4699,6 @@
4699
4699
  var _a;
4700
4700
  return __awaiter(this, void 0, void 0, function () {
4701
4701
  var packageBoxEntry, pickingLineIds, i, pickLineId, pickingLinesSum, _loop_1, this_1, pickingLine, productSum, packageBoxEntryLine, i;
4702
- var _this = this;
4703
4702
  return __generator(this, function (_1) {
4704
4703
  packageBoxEntry = Object.assign(new PackagingBoxEntry(), e.data);
4705
4704
  packageBoxEntry.Id = new Guid__default['default']().toString();
@@ -4734,7 +4733,7 @@
4734
4733
  packageBoxEntry.Lines = [];
4735
4734
  if (pickingLineIds.length > 0) {
4736
4735
  _loop_1 = function (i) {
4737
- pickingLine = (_a = this_1.pickingLines) === null || _a === void 0 ? void 0 : _a.filter(function (p) { return p.Id == _this.selectedPickingLinesKeys[i]; })[0];
4736
+ pickingLine = (_a = this_1.pickingLines) === null || _a === void 0 ? void 0 : _a.filter(function (p) { return p.Id == pickingLineIds[i]; })[0];
4738
4737
  if (pickingLine && pickingLine.ProductId && pickingLine.Product) {
4739
4738
  productSum = pickingLinesSum[pickingLine.ProductId];
4740
4739
  if (productSum && (productSum.pickqty < productSum.qty)) {
@@ -4748,7 +4747,7 @@
4748
4747
  }
4749
4748
  };
4750
4749
  this_1 = this;
4751
- for (i = 0; i < this.selectedPickingLinesKeys.length; i++) {
4750
+ for (i = 0; i < pickingLineIds.length; i++) {
4752
4751
  _loop_1(i);
4753
4752
  }
4754
4753
  }