문제

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