From 234d8624c7c41cb2986502819c340e81a9e6962e Mon Sep 17 00:00:00 2001 From: vc-ci Date: Thu, 11 Apr 2024 09:21:38 +0000 Subject: [PATCH 1/2] 3.821.0 --- Directory.Build.props | 2 +- src/VirtoCommerce.ExperienceApiModule.Web/module.manifest | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index f6a63c63..72fb90ad 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ - 3.820.0 + 3.821.0 $(VersionSuffix)-$(BuildNumber) diff --git a/src/VirtoCommerce.ExperienceApiModule.Web/module.manifest b/src/VirtoCommerce.ExperienceApiModule.Web/module.manifest index 32fa5462..811ae1a1 100644 --- a/src/VirtoCommerce.ExperienceApiModule.Web/module.manifest +++ b/src/VirtoCommerce.ExperienceApiModule.Web/module.manifest @@ -1,7 +1,7 @@ VirtoCommerce.ExperienceApi - 3.820.0 + 3.821.0 3.813.0 From ca79991dc10bcb42b7b82d1e2f60ebfe79317506 Mon Sep 17 00:00:00 2001 From: Oleg Zhuk Date: Fri, 12 Apr 2024 09:50:54 +0200 Subject: [PATCH 2/2] VCST-661: The effect off X cart subtotal, no more than Y does not take an account the selected items in cart (#544) fix: The effect off X cart subtotal, no more than Y does not take an account the selected items in cart. --- .../VirtoCommerce.XPurchase/Extensions/RewardExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XPurchase/VirtoCommerce.XPurchase/Extensions/RewardExtensions.cs b/src/XPurchase/VirtoCommerce.XPurchase/Extensions/RewardExtensions.cs index 951f5b31..98dc5b3c 100644 --- a/src/XPurchase/VirtoCommerce.XPurchase/Extensions/RewardExtensions.cs +++ b/src/XPurchase/VirtoCommerce.XPurchase/Extensions/RewardExtensions.cs @@ -60,7 +60,7 @@ public static void ApplyRewards(this CartAggregate aggregate, ICollection (li.ListPrice - li.DiscountAmount) * li.Quantity); + var subTotalExcludeDiscount = shoppingCart.Items.Where(li => li.SelectedForCheckout).Sum(li => (li.ListPrice - li.DiscountAmount) * li.Quantity); var cartRewards = rewards.OfType(); foreach (var reward in cartRewards.Where(reward => reward.IsValid))