Invoice Discounting v12


I’ve being trying to record an “Invoice Discounting” for a Sales Invoice, but always returns the message Incorrect number of General Ledger Entries found. You might have selected a wrong Account in the transaction.

Following Invoice Discounting I have setup accounts as:

Short Term Loan Account - Liability
Bank Account - Asset
Bank Charges Account - Expense
Accounts Receivable Credit Account - Asset (Receivable)
Accounts Receivable Discounted Account  - Asset (Receivable)
Accounts Receivable Unpaid Account  - Asset (Receivable)

Someone recommended and also tried setting as:

Accounts Receivable Discounted Account  - Expense (Receivable)
Accounts Receivable Unpaid Account  - Expense (Receivable)

ERPNext: v12.9.3 (version-12)
Frappe Framework: v12.6.1 (version-12)

Could anyone help me sharing your setup accounts?