This is a play on words. The phrase "cook the books" is slang for using accounting tricks to make a company's financial results look better than they really are. However, here "cooking" refers to the process of preparing meals in restaurants.
An accountant for a restaurant has to be sure the books are not cooked .