You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scope chosen here : #8148 is too restrictive (stop displaying orders with no line items).
Indeed it applies to both the list of complete orders and the list of uncomplete orders.
As a result if the orders has no line items but as the result of edition after completion of the order, the order is no more accessible through the UI.
Expected Behavior
We need to be able to find orders with no line items and status "completed" or "cancelled".
Actual Behaviour
These orders cannot be found in the UI except the payment method report, which does not contain the order number.
Steps to Reproduce
Create an order
Delete all line items using BOM
see the order does not appear anymore on /admin/orders
Create an order: for a shopper or an admin? --> Both
Delete all line items using BOM: Seems that we can't delete the last item of an order, or am I missing something?
--> in the BOM, delete the line item with the bin icon
We need to be able to find orders with no line items and status "completed" or "cancelled": I can see in the code, a FINALIZED_STATES which I can use I guess:
# All the states an order can be in after completing the checkoutFINALIZED_STATES=%w(completecanceledresumedawaiting_returnreturned).freeze
Delete all line items using BOM: Seems that we can't delete the last item of an order, or am I missing something? --> in the BOM, delete the line item with the bin icon
This is going to be changed by #8131
And I thought this would also solve the problem of having complete orders without line items?
Or is it needed to keep this functionality? Then #8131 needs an update?
I feel like we have too many related issues open around this topic, would be good to define the ideal state?
@jaycmb long story short, there is no need to update 8131 we still need it as is. The two topics are not really linked.
#8131 will still enable to delete the item if the order is cancelled, what this issue fixes is that the cancel order can still be viewed in the list of orders. Currently it can't.
Description
The scope chosen here : #8148 is too restrictive (stop displaying orders with no line items).
Indeed it applies to both the list of complete orders and the list of uncomplete orders.
As a result if the orders has no line items but as the result of edition after completion of the order, the order is no more accessible through the UI.
Expected Behavior
We need to be able to find orders with no line items and status "completed" or "cancelled".
Actual Behaviour
These orders cannot be found in the UI except the payment method report, which does not contain the order number.
Steps to Reproduce
/admin/orders
Animated Gif/Screenshot
Example with https://openfoodnetwork.ca/admin/orders/R055527651/edit in CA prod
Workaround
If a customer needs a refund, hubs can ask them their order number, but that's not really a workaround
Severity
bug-s2: a non-critical feature is broken, no workaround
Your Environment
Possible fix
All orders with completed or cancelled status should still be visible in the list no matter the content.
The text was updated successfully, but these errors were encountered: