Hi,
In a Commerce 11.8.5 project we have a custom FixedPrice promotion.
After orderGRoup.ApplyDiscounts() I can see the applied promo in orderGroup.Promotions, but lineItem.TryGetDiscountValue(d => d.EntryAmount) returns zero.
In short, the processor checks two separate contentRef lists and applies a reward for each pair from the two groups. Problem is that I can see the promotion info on the orderGroup but TryGetDiscountValue always return 0 so the discount isn't reflected in the totals.
Any ideas? I haven't been able to find anything missing regarding price entries, AffectedEntries, redemption descriptions, reward description or orderForm.Promotions.
// for each pair from the two group
var entry1 = new PriceEntry(lineItem1.PlacedPrice, 1, lineItem1);
var entry2 = new PriceEntry(lineItem2.PlacedPrice, 1, lineItem2);
entry1.Promotion = promotionData;
entry2.Promotion = promotionData;
var priceEntries = new List<PriceEntry>() { entry1, entry2 };
var affected = new AffectedEntries(priceEntries);
redemptions.Add(CreateRedemptionDescription(affected));
// After going through all pairs, return reward description
return new RewardDescription(fulfillmentStatus, redemptions, promotionData, fixedPrice * fulfilledQuantity, decimal.Zero, RewardType.FixedPrice, "Combo price");