How to Clear Supplier Refund using Payment Entry

Perhaps someone could help, looks like such as simple thing but cannot get it to work.

  1. Have supplier Credit of 30 Euros
  2. Have Created Purchase Invoice (Debit Note) - for 30 Euros
  3. Go to payment entry to clear the payment, and whatever I try to do the system throws error message such as “Paid Amount cannot be greater than total negative outstanding”.

But if I set the payment amount to -30, then on the bank account it deducts from the total balance. The supplier refund of 30 euros adds to the balance.

So how can I clear the supplier refund in ERPNext?