Cost Markups "Division by zero" error message.

NAV 5.0

I ran across an error message “Division by zero” when I try to access my Sales → Cost Markups under my item inventory card. I, in error, changed the cost mark ups to 100%. When I backed out of this screen and tried to get back in to change those from 100 to my correct markups I get that message. I cannot get back in now.

HELP!

Welcome to DUG.

If it is a custmozation then please contact your Partner…Its a problem in Code…

any custom division calc code has to be able to handle zero with a simple if statement.

if x = 0 then z := 0 else z:= y/x;