To make supplier invoice number mandatory, please follow the steps mentioned below.
Step 1: Please click on “Settings”.
Step 2: Click on “Preferences” >> Document >> Purchases >> Turn on “Mandatory Supplier Invoice Number” >> Click on Save & Update.
If enabled Supplier Invoice Number will be a mandatory field when creating a Purchase invoice.