foodbot-cart-calculations 1.0.56 → 1.0.57

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.
@@ -4,6 +4,7 @@ function offerCalculation(carts, offer, deliveryCost = 0) {
4
4
  carts.total = 0
5
5
  carts.item_details.forEach(element => {
6
6
  delete element.promotion_discount;
7
+ element.promotion_discount_modifier = 0;
7
8
  let itemTotal = element.item_price * element.quantity
8
9
  carts.total = carts.total + itemTotal;
9
10
  if(element.item_modifiers && element.item_modifiers.length>0){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foodbot-cart-calculations",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
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": {