While creating balanced entries like the one above, use convenience methods like createCashBasedJournalEntriesAndReversalsForLoan which accept both debit and credit account as parameters