foodbot-cart-calculations 1.0.70 → 1.0.71

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.
@@ -994,7 +994,7 @@ function getFixedPriceProductOffer(cartObject, offer) {
994
994
  var offerAmount = 0;
995
995
  var singleItemCost = element.item_price;
996
996
 
997
- const maxQty = offer.max_quantity || 1;
997
+ const maxQty = offer.max_quantity || offer.max_product || 1;
998
998
  let remainingQty = maxQty - appliedQty;
999
999
  const qtyToDiscount = Math.min(element.quantity, remainingQty);
1000
1000
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foodbot-cart-calculations",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Package for cart calculations in which it performs discount distribution and tax distribution on order",
5
5
  "main": "index.js",
6
6
  "scripts": {