Loan journal entry

Hi, once the loan payment is collected the capital is returned to the law firm and the interest is kept for us. if i record it initially as BS liability account Law Firm how do I clear it refuse it as clients pay?