E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
To doctor the accounts. To falsify them. They are ill (so far as you are concerned) and you falsify them to make them look better. The allusion is to drugging wine, beer, etc., and to adulteration generally.