How to make Supplier Invoice Number a mandatory field when creating a Purchase in web?

To make Supplier Invoice Number a mandatory field when creating a Purchase, you may go to settings >> general settings >> purchases >> enable the option Mandatory Supplier Invoice Number >> save & update.