simpo-component-library 3.6.277 → 3.6.279

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.
@@ -8038,6 +8038,7 @@ class CartComponent extends BaseSection {
8038
8038
  this.cartInfo.billdetails.couponCode = localStorage.getItem("couponCode");
8039
8039
  const restResponse = this.restService.addItemToDB(this.cartInfo).toPromise();
8040
8040
  restResponse.then((response) => {
8041
+ console.log(response);
8041
8042
  this.cartInfo.billdetails.totalGrossValue = response?.data?.billdetails?.totalGrossValue ?? 0;
8042
8043
  this.cartInfo.billdetails.totalTax = response?.data?.billdetails?.totalTax ?? 0;
8043
8044
  this.cartInfo.billdetails.deliveryCharges = response?.data?.billdetails?.deliveryCharges ?? 0;
@@ -8053,7 +8054,7 @@ class CartComponent extends BaseSection {
8053
8054
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8054
8055
  this.cartInfo.billdetails.discountAmount = response?.data?.billdetails?.discountAmount ?? 0;
8055
8056
  this.cartInfo.billdetails.totalTaxAfterDiscount = response?.data?.billdetails?.totalTaxAfterDiscount ?? 0;
8056
- this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount() + this.cartInfo.billdetails.deliveryCharges + this.cartInfo.billdetails.discountAmount;
8057
+ this.cartInfo.totalAmount = response?.data?.billdetails?.finalPrice ?? 0;
8057
8058
  this.storageService.addAllProductsToCart(this.cartInfo.orderedItems);
8058
8059
  this.responseData = this.cartInfo;
8059
8060
  });