simpo-component-library 3.6.283 → 3.6.286

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.
@@ -8518,12 +8518,12 @@ class CartComponent extends BaseSection {
8518
8518
  this.cartInfo.totalAmount = 0;
8519
8519
  if (this.USER_CART_ITEMS) {
8520
8520
  this.USER_CART_ITEMS.forEach((item) => {
8521
- this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
8521
+ this.cartInfo.billdetails.totalNetValue += (item.discountedPrice * (item.quantity ?? 1));
8522
8522
  this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
8523
8523
  });
8524
8524
  this.cartInfo.billdetails.deliveryCharges = (deliveryOption?.minOrderAmount > this.cartInfo.billdetails.totalGrossValue) ? 0 : (deliveryOption?.deliveryCharges ?? 0);
8525
- this.cartInfo.billdetails.totalNetValue = this.cartInfo.billdetails.totalGrossValue - this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.totalTax;
8526
- this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount() + this.cartInfo.billdetails.deliveryCharges;
8525
+ this.cartInfo.billdetails.totalGrossValue = this.cartInfo.billdetails.totalNetValue + this.getTaxAmount();
8526
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalGrossValue + this.cartInfo.billdetails.deliveryCharges - this.cartInfo.billdetails.discountAmount;
8527
8527
  this.cartInfo.orderedItems = this.USER_CART_ITEMS;
8528
8528
  }
8529
8529
  this.responseData = this.cartInfo;