Dashboard reports do not reflect actual sales

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

Dashboard reports do not reflect actual sales

Post by xarga » 02 Jun 2020, 03:56

In the Dashboard the sales report for the last 30 days is wildly different from the actual sales when the order values are added together. Mousing over the graph for a specific day shows a $USD value that is 4.5 times the actual sum of the orders in the system for that day.

The rest of the reports also appear similarly distorted.

Any idea why that might be happening?

I've tried digging down into the code for that report at

\ext\ai-admin-jqadm\admin\jqadm\src\Admin\JQAdm\Dashboard\Order\Salesday\Standard.php

but it's hard to figure out where and how the data is being extracted.

User avatar
aimeos
Administrator
Posts: 7893
Joined: 01 Jan 1970, 00:00

Re: Dashboard reports do not reflect actual sales

Post by aimeos » 03 Jun 2020, 10:31

The data is loaded via XHR request and you can find the request in the JS code here:
https://github.com/aimeos/ai-admin-jqad ... js#L59-L65

Maybe the time zone isn't set to what you expect on the server so the orders are counted one day before or after your expected date.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply