simpo-component-library 3.6.282 → 3.6.283

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.
@@ -8053,7 +8053,7 @@ class CartComponent extends BaseSection {
8053
8053
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8054
8054
  this.cartInfo.billdetails.discountAmount = response?.data?.billdetails?.discountAmount ?? 0;
8055
8055
  this.cartInfo.billdetails.totalTaxAfterDiscount = response?.data?.billdetails?.totalTaxAfterDiscount ?? 0;
8056
- this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges + this.cartInfo.billdetails.discountAmount;
8056
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.discountAmount;
8057
8057
  // this.storageService.addAllProductsToCart(this.cartInfo.orderedItems)
8058
8058
  this.responseData = this.cartInfo;
8059
8059
  });
@@ -8079,8 +8079,8 @@ class CartComponent extends BaseSection {
8079
8079
  this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
8080
8080
  });
8081
8081
  this.cartInfo.billdetails.deliveryCharges = (deliveryOption?.minOrderAmount > this.cartInfo.billdetails.totalGrossValue) ? 0 : (deliveryOption?.deliveryCharges ?? 0);
8082
- this.cartInfo.billdetails.totalGrossValue = this.cartInfo.billdetails.totalNetValue + this.cartInfo.billdetails.totalTax;
8083
- this.cartInfo.totalAmount = this.cartInfo.billdetails.finalPrice ?? this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges;
8082
+ this.cartInfo.billdetails.totalGrossValue = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount();
8083
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.discountAmount;
8084
8084
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8085
8085
  this.responseData = this.cartInfo;
8086
8086
  this.restService.addItemToDB(this.responseData).subscribe((response) => {
@@ -8168,7 +8168,7 @@ class CartComponent extends BaseSection {
8168
8168
  this.cartInfo.billdetails.totalTaxAfterDiscount = cartData.billdetails?.totalTaxAfterDiscount ?? 0;
8169
8169
  this.cartInfo.billdetails.deliveryCharges = (deliveryOption?.minOrderAmount > this.cartInfo.billdetails.totalGrossValue) ? 0 : (deliveryOption?.deliveryCharges ?? 0);
8170
8170
  this.cartInfo.billdetails.totalGrossValue = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount();
8171
- this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges + this.cartInfo.billdetails.discountAmount;
8171
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.discountAmount;
8172
8172
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8173
8173
  if (this.storageService.getUser())
8174
8174
  this.updateUserCart();
@@ -8300,7 +8300,7 @@ class CartComponent extends BaseSection {
8300
8300
  });
8301
8301
  this.cartInfo.billdetails.deliveryCharges = (deliveryOption?.minOrderAmount > this.cartInfo.billdetails.totalGrossValue) ? 0 : (deliveryOption?.deliveryCharges ?? 0);
8302
8302
  this.cartInfo.billdetails.totalGrossValue = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount();
8303
- this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges + this.cartInfo.billdetails.discountAmount;
8303
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.discountAmount;
8304
8304
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8305
8305
  });
8306
8306
  }
@@ -8329,7 +8329,7 @@ class CartComponent extends BaseSection {
8329
8329
  });
8330
8330
  this.cartInfo.billdetails.deliveryCharges = (deliveryOption?.minOrderAmount > this.cartInfo.billdetails.totalGrossValue) ? 0 : (deliveryOption?.deliveryCharges ?? 0);
8331
8331
  this.cartInfo.billdetails.totalGrossValue = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount();
8332
- this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges + this.cartInfo.billdetails.discountAmount;
8332
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.discountAmount;
8333
8333
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8334
8334
  });
8335
8335
  }