Dashboard's Lifetime Sales And Total Order Revenue are displaying different values ? Any Solutions?
-
16-10-2019 - |
문제
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.
Another Snap :
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)