drkNsubuga / PharmaSpot

PharmaSpot - Point of Sale for Pharmacies built with Electron
MIT License
39 stars 21 forks source link

Stock limit showing even when minimum stock has not been reached and adding stock fails sometimes #42

Open AnoRebel opened 5 days ago

AnoRebel commented 5 days ago

Describe the bug

  1. Adding the stock was okay at first but after a while, I realized some of the stock added wasn't entered until I redid it again wonce or twice more sometimes, but it doesn't always occur so I cant exactly pinpoint the cause.
  2. I initially added products without categories, then later added the categories and updated the products to add them to a category, after this process the minimum stock limit checker seems to have bugged out as it shows random products are in low stock even when their stock is high.

Expected behavior

Everything to work as intended, products added once successfully and stock limit to be maintained.

Actual Behavior

As described above

Environment

drkNsubuga commented 3 days ago

Hi, I cannot replicate the issue on my end. Can you please provide a video preview of the issue?

AnoRebel commented 2 days ago

I couldn't get a video, but I got images of how it looks. The minimum stock for all of these is set to 5, but as you can see, even some with more than 100 in stock still complain about Low Stock stock stock1