If entering a pledge payment, apply the gift to the pledge.

If entering a recurring gift payment, apply the payment to the recurring gift.

If entering a sold stock/property gift, refer to How to sell a stock gift and enter stocks in a batch.