Question

I have a problem with dashboard's Lifetime Sales and Revenue displays different figure.

i have tried displayed lifetime sales by following code:

Mage::getResourceModel('reports/order_collection')->calculateSales()->load()->getFirstItem()->getLifetime();

and it is displaying correct, same amount as Lifetime Sales on dashboard.

so i am getting confused whether lifetime sales is wrong or /revenue is wrong.

enter image description here

Another Snap :

enter image description here

Can any body help me???

Was it helpful?

Solution

If I remember correctly, the graph for the dashboard used the default timezone (not your store timezone), whereas the reports use your timezone. So the figures could be as much as 12 hours out either way. But its normally fairly insignificant.

OTHER TIPS

The lifetime sales is based on completed orders I believe. Try running a report on the different order status instead of any. I did this and it showed the matching numbers, thought mine was not off by such a dramatic number.

So the Revenue that you see on the right is all orders, regardless of status (except canceled I think)

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top