foodbot-cart-calculations 1.0.19 → 1.0.20

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.
@@ -505,7 +505,7 @@ function getBuyxGetYOnCondition(descending, cartData, offer,total,buyItemAmount,
505
505
  if (offer.oo_offer_type === "percentage") {
506
506
  let itemTotalDiscount = 0;
507
507
  itemAmount = (parseFloat(desc[i].item.item_price) * parseFloat(offer.oo_offer_value)) / 100;
508
-
508
+ buyItemAmount = itemAmount
509
509
  itemTotalDiscount += itemAmount;
510
510
  amt += itemAmount;
511
511
  amtWithModi = amt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foodbot-cart-calculations",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
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": {