din-co / d2

Solidus-based commerce application
0 stars 2 forks source link

Editing orders is error-prone, and line items cannot be deleted #189

Closed cee-dub closed 8 years ago

cee-dub commented 8 years ago

Notes about editing orders in admin

Solidus appears to assume that payments are not automatically captured. We use auto-capture, so things are somewhat different (some intermediate human/admin steps are skipped).

To enable us to edit the carts of orders before we ship them and to apply the proper corrections to payments we have already captured, I posit that we need to move the order back to the confirm state from complete, which will allow update_cart to recalculate shipments and totals, thus recreating a shipment that's pending rather than ready.

Following the adjustments, the order should go back to complete via order.complete! resulting in charges being issued if quantities were increase, and reassessment of eligible promotions.

cee-dub commented 8 years ago

This doesn't seem like a viable approach based on feedback from the Solidus slack org.