To cheat in bookkeeping. To record false information in the accounts of an organization, especially in order to steal money (usually in continuous tenses).
One of the directors had been cooking the books and the firm had been losing money for years.