How to warn user while creating invoice when price is less than purchase price of the item in web?

To warn the user while creating invoice when the selling price is less than the purchase price of the item, you may go to settings >> general settings >> sales >> enable the option warn the user while creating invoice when price is less than purchase price >> save & update.