A 'schoolboy error' at the Inland Revenue resulted in the embattled tax collector taking in almost £1bn less in tax revenues than it had previously claimed.