closing inventory debit or credit