New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS 1.7.6 ASM incorrect "reserved_quantity" values #17490
Comments
Hi @omar2886, Reserved stock represents the quantity of products that are currently in an open customer order that has not been shipped yet. In other terms, these products are physically in your storage but are not available for sale anymore. You cannot change directly the reserved stock. The reserved stock only depends on customer orders. Thanks to check & feedback. |
Thanks @khouloudbelguith I didn't know about this info being stored that way. For example, for a unique product product I have as much entries as orders have been placed for that item, right? What I don't know is how to do in order to fix it. |
@omar2886, Please be aware that this bug tracker should be used to report issues ONLY. If you need help, you can ask on the Forum (https://www.prestashop.com/forums/), Gitter (https://gitter.im/PrestaShop/General) or Stack Overflow (https://stackoverflow.com/questions/tagged/prestashop). |
isn't it a bug then? I mean, if all orders containing these products are either shipped or canceled there shouldn't be any reserved products on the ASM system |
How did you reproduce the issue? the quantity of your product is <0 but in your case, "Allow ordering of out-of-stock products " is disabled? Thanks! |
"Allow ordering of out-of-stock products " enabled, that must be the reason that caused all that mess I guess. Because we accept orders of products not available, so we can order them from our providers on demand and then serve our customers. |
Can you confirm these steps:
Thanks! |
After doing so the result is: |
Now I remember why I don't have order statuses with the "shipped" option assigned, because that condition closes automatically the payments on open orders and generates the invoice, which I don't want, because many orders are sent with credit or COD, so we prefer entering manually the payments so we can control when & how they were done. |
How manually? edit from the database manually? Thanks! |
There is a payment block in the orders where you can add payments with this info: |
@omar2886, and the status of those orders? |
The non paid orders? they could just normal statuses like "shipped" (but not considered on PS system as really shipped) or "unpaid" so we can keep track of non paid orders that have been delivered. |
What do you think to create a new order status similar to shipped or just edit this status & uncheck this option It could be a solution in your case to consider that your order are really shipped. Thanks to check & feedback. |
Thanks! that was a smart solution, works! I now have to deal with some Error 500 I'm getting when filtering orders_list for orders from past years. I'll contact my programmer to check on the logs to see what is happening |
@omar2886, Great! Thanks! |
Hi @khouloudbelguith , after doing what you suggested in +12.000 orders, I've noticed that by only checking those options you said, now there is a lil problem as this new status does not consider the order as validated + allow pdf download + consider order as paid... so now it has affected many other statistics as for example if I open a customer account that may have many orders on already delivered it won't show any on the historic. |
Hi @omar2886, Please be aware that this bug should be used to report issues ONLY. If you need help, you can ask on the Forum (https://www.prestashop.com/forums/), Gitter (https://gitter.im/PrestaShop/General) or Stack Overflow (https://stackoverflow.com/questions/tagged/prestashop). Thanks! |
Fix: #14595 (comment) |
Hello @omar2886 , |
@wewew85 as I mentioned on my last post, I found the solution here: #14595 (comment) |
@omar2886 thanks for your answer, but what I mean is the reserved quantity. How to reset this reserved quantity? I tried to do it directly in database but without any success. |
@wewew85 no body seem to answer that question, I've done a lot of research and still and nothing. If I get to fix if I'll let you know, please do the same if you find it first |
@omar2886 ok, I will let you know. thanks. |
Solutions:
regards |
yes there is clear bug here
|
Hi! I bring the solution! You should look at the status of all your orders and review your settings. They must have the option "Set the order as shipped" checked. Once that is done, you can go to see your Stock and you will see that the reserved and therefore physical quantities of each product were discounted. |
Hi,
I installed a new module for advanced stock management, but I can use it because there is a problem with the stock levels in my PS installation. I've got plenty of products with positive stock reserved quantity that I can't correct, I can only change values regarding "quantity" and "physical_quantity" values.
I've tried to modify them directly using PhpMyAdmin by changing the values at ps_stock_available. As soon as I change the values, I update the view of ASM at BO and then the previous values come back, there is something modifying them right after me.
Any help? how can I reset the values? knowing what causes this issue may help prevent and fix this in the future.
Thanks
The text was updated successfully, but these errors were encountered: