Now it is possible to apply a document type payment to a document type supplier refund and also a document type supplier refund to a document type prepayment. Both are available in UI and API.

Purchase To Pay: Supplier Ledger Version 10.20