Hi,
in the customer payment journal select functions-settlement.
Then make sure that the invoice that is paid is market for settlement and enter the payment discount to be applied in the discount section
Example:
If you close this form, the discount will reduce the total payment amount and be posted on separate ledger accounts.
Best regards,
Ludwig