-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
[DFC Orders] - Order Cancellations not recalculating correctly #13046
Comments
I'm not sure your expectation is the desired logic:
Since many things can influence the backorder, we discussed always doing a complete re-calculation for all items. For example, stock could have been adjusted in the OFN backend. Thinking about possible causes for more items being removed:
Another thing I noticed is that you mixed retail and wholesale variants in the same order cycle. I thought that's not a scenario at the moment? It should work but I haven't tested it at all. I just wonder how the retail variants got added to the backorder. If there's a mapping between the variants then OFN would always try to order the wholesale variant. I'll try to reproduce your scenario now. |
Now I'm also seeing that there are two retail variants for the balsamic vinegar. So far I always assumed one retail variant mapped to one wholesale variant. I need to check implications. |
I now noticed that the Dulse flakes don't appear in the shopfront. The stock level is 0. In Shopify the Case, 10 x 30g variant doesn't have stock either. That's probably why it got removed from the Shopify order. |
I do see an update here. The 40 ml bottle and the 100 ml bottle are both listed in Shopify as two separate items. I need to check the transformation to wholesale. Are the mappings on at the moment? |
I can confirm that the Dulce flakes were removed again. Interestingly, the OFN stock for the wholesale Dulce flakes was reduced by one. That seems to be a mix-up. My theory is this:
So the error is that we have been looking at each item one-by-one instead of accumulating wholesale and retail together. We are not dealing with mixing them yet. Is this a scenario we need to support? In any case, this is not a regression of Remove old, replaced backorder lookup #13044. This is pre-existing. |
Clarifying the vinegar confusion. Test instructions were:
I think that those instructions need updating because there's something wrong in the setup. Did you intend to add the 40ml bottle in the first place? And how many? We need to order more than six to reach a second case. |
Description
Whilst testing #13044 I encountered a bug in the back order recalc following an order cancellation.
Shopify Draft order
OFN Cancelled Order
Expected Behavior
Only the necessary product (1 x case of 6 x Balsamic vinegar 40ml) should be removed from the back order following an order cancellation.
Actual Behaviour
Several other products, not related to the cancelled order where removed (see screenshots)
Steps to Reproduce
Animated Gif/Screenshot
Workaround
Not that I can think of.
Severity
bug-s2: a non-critical feature is broken, no workaround
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: