Hi everyone , I'm relatively new to NAVISION world , I have a question i will be very grateful if someone can help me.
I have to create an error message that block a user when he tries to validate an sales invoice with 0 amount.
I'm sure I will be use an IF with Error msg like this :
SalesHeader.SetRange("No.", "Document No")
Error('The Amount of the relate order "No.":=' +SalesHeader."No."+' cannot be 0.')
but I don't know where I will put that is on a code unit or on the order page ?
thanks for your help.