I have created an add-in with visual studio tools. The add-in was created to add extra criteria to validate customer on cash receipts. I want to stop the ability of cash receipts for certain customers. I added a method for ValidateBeforeOriginal for customer field. it stops the adding of the customer and leaves the field highlighted. I have set cancel to true for the ValidateBeforeOriginal. The problem is it also gives a warning that you can't change customers on a document, If you try to change the customer. I've tried LeaveBeforeOriginal. It does not work.
Any ideas! I need to make the window know that the customer is wrong.
*This post is locked for comments
I have the same question (0)