I am currently using OrderFormDiscount in episerver commerce 8.9, and there is an issue I am having.
The issue is how to distinguish between a percent or credit discount? Since either value can be set in DiscountAmount or DiscountValue.
Generally speaking, DiscountAmount refers to either the amount (like $5.00 if you are using the value option) or the percentage (like 10% if you are using the percent option), and DiscountValue refers to the actual amount that is being discounted ($3.21 or something like that).
Hope that helps!
if Product A price is of price £30For a value based discounts If Offer is something like £5 Off On ProductA, then product price will be 30 - (5)If Offer is something like 5% Off On ProductA then product price will be 30 - (5% of 30)