It should validate whether the "your location" and "stock location" boxes have been filled before allowing you to submit.
Exception
I checked in the http://localhost/RaxaEMR/src/pharmacy/ and in the inventory section, it seems to be validated. I have attached a screenshot . When i tried submitting the request without the location it gives an alert. Kindly , check and reply.