diff --git a/src/VirtoCommerce.XCatalog.Core/Models/ExpProduct.cs b/src/VirtoCommerce.XCatalog.Core/Models/ExpProduct.cs index ccda952..bc0dfbd 100644 --- a/src/VirtoCommerce.XCatalog.Core/Models/ExpProduct.cs +++ b/src/VirtoCommerce.XCatalog.Core/Models/ExpProduct.cs @@ -133,11 +133,6 @@ public virtual void ApplyRewards(CatalogItemAmountReward[] allRewards) foreach (var reward in mappedRewards) { - foreach (var tierPrice in productPrice.TierPrices) - { - tierPrice.DiscountAmount = new Money(Math.Max(0, (productPrice.ListPrice - tierPrice.Price).Amount), productPrice.Currency); - } - if (!reward.IsValid) { continue; @@ -161,7 +156,7 @@ public virtual void ApplyRewards(CatalogItemAmountReward[] allRewards) foreach (var tierPrice in productPrice.TierPrices) { - tierPrice.DiscountAmount += reward.GetRewardAmount(tierPrice.Price.Amount, 1); + tierPrice.DiscountAmount += reward.GetRewardAmount(tierPrice.ActualPrice.Amount, 1); } } }