How to force users to attache documents when recording a payment

How to force users to attache documents when recording a payment

Hello,

I want to force my users to attache the payment proof (PDF or Image) when they record the payment of an invoice.

How can I do that in settings ? I didn't find it yet.

Thanks in advance for your help.