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