How to make Sales Order can't be posted when Sell-to Customer No and Bill-to Customer No have the same value

I completely agree with Savatage. It is better to see how making the field “uneditable” pans out rather than using a code.