foodbot-cart-calculations 1.0.4 → 1.0.6

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.
@@ -397,7 +397,7 @@ function getCategorySpeificOffer(carts, offer) {
397
397
  function getOfferDetails(carts, offer = []) {
398
398
  return new Promise(function (resolve, reject) {
399
399
  try {
400
- buyItemAmount = 0
400
+ // buyItemAmount = 0
401
401
  buyItemss = []
402
402
  total = 0
403
403
 
@@ -467,6 +467,7 @@ function getBuyxGetYOnCondition(descending, cartData, offer) {
467
467
  var buyArray = [];
468
468
  var getArray = [];
469
469
  let total = 0
470
+ let buyItemAmount=0;
470
471
 
471
472
  if (!cartData.totalDiscount)
472
473
  cartData.totalDiscount = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foodbot-cart-calculations",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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": {