-
Notifications
You must be signed in to change notification settings - Fork 212
Description
Currently, once an order is made, there is no ability to change or modify the order. This makes exchanges very difficult and creates some holes in reporting. Additionally, one must manually go in and change the stock. We should allow orders that have not been shipped (or completed) to be modified.
Desired UI:
On the orders page, users can edit a completed order. They can take away line items, add line items, and adjust the quantity. When the user tries to save or update the changed order they receive an alert asking them if this is only to affect the order for reporting or to also impact the store quantity as well. Something like -> "Warning, this change will not edit your current store's stock. Should I also change [item name + if( variation name )] to +1 stock and [item name + if( variation name )] to -1 stock?" (Basically a written out version of what the code is actually going to execute and do)
If user does not impact stock (as there are many use cases not to) all that is impacted is the verbiage of the order and what will be written in the reporting CSV. If the user opts to impact stock, that change will happen.
Currently this will only impact reporting and stock. In the future, gateways will likely need to be involved and impacted as well for partial refunds and different scenarios that can arise.