Please go to settings >> preferences >> document >> sales >> disable allow negative quantity >> save and update