Posting a payment against a liability account

SOLVED

The owner of the company made a loan to the company, and the account is listed as a long term liability in Sage. He created a service receivable invoice for some items he purchased and wants the amount applied against the loan. I tried to do a journal entry but it will not let me, stating that posting to a receivable account must be done using the appropriate clearing accounts. I'm trying to think of how to do this properly and I am stumped. Any help is appreciated.