In TallyPrime, you can enable or disable warning on negative stock balance while recording a transaction. Follow the steps given below.
In the sales transaction, press F12 (Configure).
Warn on negative Stock Balance: Yes.
If you want to disable it, then set it to No.
Press Ctrl+A to save the setting.
Click here for more information regarding invoice configurations.