The allowance for doubtful accounts is recorded as a contra-asset account on the balance sheet. When an invoice is written off, a journal entry must be made, with a debit to bad debt expense and a credit to allowance for doubtful accounts.