How to adjust payment in sales invoice against the journal entry

UseCase : we are disbursing loan which has processing fees which is deducted from loan amount

Journal Entry:

Customer —> 10,000 and bank → 9000 and processing fees income as 1000.

Now I want to create sales invoice (amount 1000) against the customer and want to mark this invoice as paid but want to adjust the payment against the income booked in 1 journal entry so that customer does not need to paid for this.

is this possible ?