I want to run a function when transfer order receive Boolean OK is clicked.
whenever the user click ok of receive Boolean ,then the function will check the condition if the condition it meets for that user by running the function defined,if is ok then receive will work else it will show an error message.
Please help me where i have to write and call the function on transfer order codeunit
here is my function calling
IF NOT CheckLocationUser(user,"Transfer-to Code") THEN
ERROR('You are not allowed to Recieve beyond Your Location');