...
Specify the sales document.
On this tab, specify that this is an advance payment that can be used as the basis for a refund or applied to other accounts.
See also 3.2.7.2. Credit Notes (Goods Return and Invoice Correction)
...