-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
BOM doesn't work anymore #3655
Comments
I'll have a look |
ok, I think I understand it. it's because in the BOM you are seeing, there is an order with an item with quantity ZERO. if you edit the order where the line item quantity is zero and move that quantity to 1 or more, the error will disappear from all other orders and items. deleting the item from the order directly on the BOM will also fix the problem. openfoodnetwork/app/assets/javascripts/admin/line_items/controllers/line_items_controller.js.coffee Line 143 in d963df2
the description would be: an order with a weight calculated item with quantity zero will break BOM. can you please check this is true? it looks like a edge case with a workaround so I'd tag it s3. |
un-assigning myself as I am not fixing it today if it's s3. |
Ok I'll check tomorrow morning |
Ok I see lots of lines with zero quantity, it must have been problematic for the user as the price has not changed even if volume has been put to zero... I asked the user what he wanted to do to try to fix it, as it's on production I can't just delete the lines if they are actually still used in an order. It's pretty annoying, now with guest orders I don't see the name and date of the order in BOM. Don't know if it was like that before but I have no way to find the concerned orders. |
@luisramos0 did you fix the problematic lines on Katuma staging ? I tried to see if your solution works there but I can't reproduce anymore. |
ah, yes, I have fixed the offeding line item in katuma staging. You just need to edit the order and put a quantity zero. |
"I see lots of lines with zero quantity," in the screenshot I see lots of zeros in poids/volume, quantities are not zero... |
Yes sorry you are right I wrote too quickly ;) But still I can't know what are the corresponding orders and what the users wanted to do ;-) Anyway, I retest on Katuma and rephrase as you suggest. |
This is strange, now on Katuma if I try to put a product with volume = 0 (like here apple 2kg) I can't save ! How did the user put the volume to 0 ??? Any idea @luisramos0 ? |
Ah sorry I get it, forget my comment @luisramos0 ;-) Broken because your one liter yogourt ;-) |
No, it's broken... Arghhh ! So now I have deleted your probematic yogourt. I can modify the volume/weight, it's not broken. But I can't put any weight/volume to 0. So how did the user do on French production ? @luisramos0 if you have a clue... |
yes, one single broken line item will break the full page. if you fix that line item all the lines in the page will just work again. |
yeah, I see. you cant really move the volume to zero either. |
Unfortunately not @luisramos0 the product "olives noires 500g" on french prod is in Kg... and the volume/weight is to 0 :-( |
Ahhhh ! I think I found the bug, the product is set up per kg, but nb of unit of the variant is 0,5 (displayed 500g), BUT the user has left a space between the , and the 5, he wrote 0 ,5 !!! |
But the volume/weight is still to 0... I have an error message saying "certain variants don't have a nb of unit"... it is still displayed... |
Ok so I have no way to reput the original weight/volume but as the price is correct I won't touch it. I can back update the other BOM weight/volumes. So the cause of the problem was how the nb of unit was filled in, I'll open another issue to explain it. I think we can just close that issue as there is no possiblity to move quantity or volume/weight to zero from BOM. Thank you @luisramos0 for your help, your clues and tests helped me find the problem ;-) |
awesome, thanks! |
Here is the new issue, closing this one #3660 |
Description
In BOM, if I change the weight of an ordered product, the price displayed is correctly dynamically adapted but it's impossible to save the new weight.
(tested on French production AND Katuma staging)
Expected Behavior
I can adjust the real weight of the received product (ex: chicken) and the price adapt accordingly, and this new value can be saved and apply to the given order.
Actual Behaviour
Impossible to save the new weight value in BOM.
Steps to Reproduce
3.Change the weight to 1500 instead of 1000. You see the price dynamically changing. But you see also that the field is surrounded by red line.
4.Try to save : error ("the red fields contain errors"). The dev tool doesn't show anything, it doesn't react at all as if nothing was happening !
Animated Gif/Screenshot
Context
I was doing a test for another bug on shipping method fees calculated per kg, apparently they don't update when the weight of the products is updated through BOM. I'm not able to test until this is solved.
Severity
If someone else can reproduce I would say S2 this is a feature which is pretty used with not really workaround (how to fill in the real kitchen weight ?)
Your Environment
The text was updated successfully, but these errors were encountered: