what is the closing and opening journal entry for provision for doubtful debt