Calculate Discount

Hi!

So in sales order entry I have a discount, the field is a EpiNumericEditor, what I need is when someone types a discount greater than 20 I need a message to popup saying that the discount value is too high.

I’m fairly new to epicor so I don’t know how, a buddy of mine told me to use LeaveFocus, but I can’t find documentation about this.

This should be done as a BPM, not a customization. This will enforce the rule no matter what. You can use the SalesOrder.MasterUpdate Pre-Processing Method Directive to check if the value in that field is greater than 20 and show an error to the user (and stop the save).