ashrafjfr / pe

0 stars 0 forks source link

Prescription gives a medicine that is not in liststock #1

Closed ashrafjfr closed 3 years ago

ashrafjfr commented 3 years ago

After deleting the stocks from previous stock mode testing, list becomes empty. However, when in prescription mode and I prescribe someone a medicine, it takes from deleted stocks. I understand that it gives the medication with earlier expiry date but if I can't view the medication in the list stock, how do I know what is there to prescribe. How is the prescription given using deleted stock medication?

image.png

As seen in the image above, when I list, there are only index 6 and 7 in the list. However, after prescribing, it takes from index 3.