To remove Supplier invoice number mandatory, please follow the steps mentioned below.
Step 1 : Go to Settings.
Step 2 : Select Preferences >>Click Document >> Click on Purchases >> Disable the toggle of Mandatory Supplier Invoice Number >> Click on Save & Update.

