News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with stock

Started by Alexander, March 21, 2009, 18:20:59 PM

Previous topic - Next topic

Alexander

Hello everyone,

I have discovered a small bug in the stock management in Virtuemart 1.1.3 in Joomla 1.5.9

Lets start from the beginning, we have a product with 1 piece in stock. A user places an order and the product's stock dicreases to 0, so far so good.

When we go to the backend and cancel the order, then the product's stock becomes 1 again.

If we then delete the order, then the product's stock increases to 2.

What I suggest is, when we delete an order from the backend , the program must check the status of the order. If the order is canceled or refunded, then while deleting it it must NOT increase the quantity.


I am looking up in the code , if i can make the correction and upload it here, if someone else does it before me i hope i get a notification.

Best Regards