I have a problem in getting the sum of time taken between two status of an order
I can able the get the created time by the following code:
$collection = Mage::getResourceModel('sales/order_status_history_collection')
->addAttributeToSelect('created_at')
->addAttributeToFilter('status', array('eq'=>'complete'))
->load()
is there a way to get the sum of time taken between two status like sum(OrderInvoiced+OrderShipped) ?
Any help would be appreciated.