Jump to content

Advance stock - negative values


Niik00

Recommended Posts

Hello guys,

 

I'm new with Prestashop and I'm trying to manually edit the stock. Basically I set all the value to 0 and I have a CSV with the stock value exported from the company erp. Some products have negative values. I did this :

 

1) Create a stock movement with "decrease" as cause and the quantity to decrease : -2 .

 

2) I tried to updated the table prestashop_stock and to set the physical_quantity and usable_quantity fields with -2 but I can't. Because the two fields are unsigned integer MysQL doesn't let me set -2 as quantity.

 

3) I update prestashop_stock_available table and I set the quantity to -2.

 

When I go on the product, I can see that the quantity is equal to -2 BUT if I go to the management stock page, I see 0 for that product and not -2.

 

Qhat am I doing wrong ?

 

Thanks for your help,

 

Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...