We have a custom field on the Customer Record . . ."Ship-to Code Required". This is true for customers when their Bill-To Address is not valid for shipping. For these customers, we need to ensure that Ship-to Code<>'' prior to saving the Sales Header.
In Nav 2.5 we had code in the OnActivateForm() event of the Sales Line subform which forced the user to go back and enter a Ship-to code. How would I do something similar in Nav 2016?
I tried putting this code in the OnValidate trigger of "Ship-to Code" on the Sales Header table however apparently the trigger executes after "Sell-to Customer No." is entered and I can't get past the validation error so this must not be the right place to check.
IF Cust."Ship-to Code Required" THEN
ERROR(ShiptoCodeReq);
//ShiptoCodeReq is a text constant I defined
Thanks!
Sandra
*This post is locked for comments