@pmcretail/mapper-library 0.0.55 → 0.0.56

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.
@@ -3833,8 +3833,8 @@
3833
3833
  deliveryMethod: _this.getDeliveryMethod().toString(),
3834
3834
  totalLinePrice: product.price ? product.price : 0
3835
3835
  };
3836
- if ((subprovider === null || subprovider === void 0 ? void 0 : subprovider.toLocaleUpperCase()) === PROVIDERS.SALESFORCE_OSU.toLocaleUpperCase() && (product === null || product === void 0 ? void 0 : product.c_osuObjectData)) {
3837
- var availableQty = _this.getAvailableQty(JSON.parse(product === null || product === void 0 ? void 0 : product.c_osuObjectData));
3836
+ if ((subprovider === null || subprovider === void 0 ? void 0 : subprovider.toLocaleUpperCase()) === PROVIDERS.SALESFORCE_OSU.toLocaleUpperCase()) {
3837
+ var availableQty = (product === null || product === void 0 ? void 0 : product.c_osuObjectData) ? _this.getAvailableQty(JSON.parse(product === null || product === void 0 ? void 0 : product.c_osuObjectData)) : 0;
3838
3838
  productObj.availableQuantity = availableQty > 0 ? availableQty : 0;
3839
3839
  }
3840
3840
  if (product && product.price != 0) {