I assumed you created both transactions manually. If its from bank statement you can use the new Inter-account transfer account for both payments and receipts of IATransfers (Introduced a few days ago). For this you have to make a receipt too for the account in which you received the payment. So its balanced.