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.
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +4 -4
- package/fesm2022/simpo-component-library.mjs +3 -3
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.6.286.tgz +0 -0
- package/simpo-component-library-3.6.283.tgz +0 -0
@@ -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.
|
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.
|
8526
|
-
this.cartInfo.totalAmount = this.cartInfo.billdetails.
|
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;
|