A solid accounting foundation does more than keep books balanced. It uncovers cash-flow trends, spots buried risks and powers smarter