simpo-component-library 3.6.275 → 3.6.276

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.
@@ -8042,7 +8042,7 @@ class CartComponent extends BaseSection {
8042
8042
  this.cartInfo.billdetails.totalTax = response?.data?.billdetails?.totalTax ?? 0;
8043
8043
  this.cartInfo.billdetails.deliveryCharges = response?.data?.billdetails?.deliveryCharges ?? 0;
8044
8044
  this.cartInfo.billdetails.totalNetValue = response?.data?.billdetails?.totalNetValue ?? 0;
8045
- this.cartInfo.totalAmount = response?.data?.totalAmount ?? 0;
8045
+ // this.cartInfo.totalAmount = response?.data?.totalAmount ?? 0;
8046
8046
  this.USER_CART_ITEMS = cartData.target.result;
8047
8047
  // this.USER_CART_ITEMS.forEach((item) => {
8048
8048
  // this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
@@ -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.totalNetValue + this.getTaxAmount() + this.cartInfo.billdetails.deliveryCharges;
8056
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount() + this.cartInfo.billdetails.deliveryCharges + this.cartInfo.billdetails.discountAmount;
8057
8057
  this.storageService.addAllProductsToCart(this.cartInfo.orderedItems);
8058
8058
  this.responseData = this.cartInfo;
8059
8059
  });