Firstly, click on Admin-Custom Definitions-Custom Settings.
After that, click on Sales – Return Settings.
Select "warn if there are products with no price when recording the sales" and save it.
After that, in the sales screen, add a stock without price. When the stock added, click on payment type of cash or others, program shows you a message.