Dashboard's Lifetime Sales And Total Order Revenue are displaying different values ? Any Solutions?

magento.stackexchange https://magento.stackexchange.com/questions/1287

سؤال

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???

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

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)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top