spree/spree — Issue #729: Canceled orders considered as 'sold' in many parts of spree
Author: zecke
Created: 2011-11-02 22:58:53+00:00
State: open

A canceled order will still be considered as complete by various parts of spree. This includes the order listing when (Only show completed orders is ticked), it shows on the Overview page of the admin page, but most annoyingly it also affects the InventoryUnit and the "On Hand" calculation of items.

The easiest way to reproduce is to:
1.) set variant on-hand to 1
2.) purchase
3.) cancel the order
4.) verify on-hand is calculated as 1.

So right now the on-hand value is adjusted on payment but not when the order is canceled.