Show sales of the last year

Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
wr_coolmann
Posts: 3
Joined: 19 Aug 2019, 09:42

Show sales of the last year

Post by wr_coolmann » 19 Aug 2019, 09:53

Hi,

in the backend of the TYPO3 extension you can look at the Sales of the last 30 Days, Sales per month etc.

One of our clients wants us to add the Sales of the last year, too. Has anyone done this before? Does aimeos bring something I could work with here? Or do I need to add up the 30 days records till I got the whole year? Any Ideas?

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

Re: Show sales of the last year

Post by aimeos » 19 Aug 2019, 12:11

Which kind of aggregation should be done?
- Single number of all orders within 365 days?
- Graph of all sales by day within 365 days?

You can have a look at the dashboard JS for the sales of the last 30 days if you need a graph.
Otherwise, you can use aggregate() to sum up all sales of the last 365 days.

https://github.com/aimeos/ai-admin-jqad ... d-sales.js
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

wr_coolmann
Posts: 3
Joined: 19 Aug 2019, 09:42

Re: Show sales of the last year

Post by wr_coolmann » 20 Aug 2019, 14:33

We would like to show the last year from 1.1. - 31.12. in a similar way like the 30 days are displayed with a graph. Except we want to calculate the sales per the months and thus make an overview over the whole year.

The dashboard file should work for that, at least as far as I understand it for now. Thanks for your help.

Post Reply