I have created a new custom workflow in AX 2012 R2 for new customer to pass through approval process once submitted to this workflow, till here everything is working fine.
I want to know how to stop this new customer, who is still in approval process(not completed), to stop doing any transaction, till he gets approved.
Select the customer with whom you don’t want to do transaction > Edit > Select the Credit & Collection Fast tab.
Select the Invoicing & delivery on hold feild to All. Now when you create a SO with this customer, error will come as ‘Customer so & so is stopped for All’.
I have completed this issue, for you @Phon by using same as Parashar, you put customer on hold for All by using code while initialization in CustTable table level.
And by using code again to disable buttons on CustTableListPage and CustTable Form.