Debit: accounts receivable/accounts received in advance.
Loan: income from main business
Received the money
Debit: bank deposit/cash
Loan: income from main business
Take this as income, and then take the received invoice as expense, and you can make a report.