Please check the account type of the account that you want to use.
The highlighted setting (Accounts Receivables -> Payment Differences -> Cash Discount Allowed) expects accounts of account type "Differences".
(You can see the account type in Workcenter "General Ledger" -> General Ledger Accounts -> Advanced selection: choose Company&Set of Books.)
Regards
Michael