Paying an invoice with a loan account

I have the same problem. Using a journal entry I can reduce the Accounts Payable amount and increase the appropriate Loan Account but that leaves the Supplier Invoice unpaid and overdue. What I would like to do is “Spend Money” to pay the Suppliers Invoice but not from the company bank account, rather from the Loan Account.