We are running into an issue with the promo system. We have the following scenario:
First Promotion Code For All Users
-Minimum $200 spend
-After applied, customer receives $0.01 discount to current order and receives an email with second promotion.
Second Promotion Single Use Code
-$75 off of another $300 minimum order
After applying the First Promotion Code, users that are eligible are occasionally running into the following error. This isn't happening with all products/quantities but is reproducible with the same combination of SKUs.
System.InvalidOperationException: DistributeMoney called with too large remainingDiscountAmount (0.01)
at EPiServer.Commerce.Marketing.DiscountUpdater.DistributeMoney(IEnumerable`1 entries, Decimal remainingDiscountAmount, Currency currency, Boolean distributeOrderDiscount)
at EPiServer.Commerce.Marketing.DiscountUpdater.UpdateLineItemDiscount(IEnumerable`1 prices)
at EPiServer.Commerce.Marketing.PromotionProcessorContext.UpdateDiscounts()
at EPiServer.Commerce.Marketing.PromotionEngine.Run(IOrderGroup orderGroup, PromotionEngineSettings settings)
at EPiServer.Commerce.Order.IOrderGroupExtensions.ApplyDiscounts(IOrderGroup orderGroup, IPromotionEngine promotionEngine, PromotionEngineSettings settings)
We are on the following versions:
CMS UI - 11.17.1
CMS Core - 11.11.2
Commerce - 12.17.0
Any ideas?