In the end of the current or at the beginning of the next year you might want to get the exact amount of your sales. You can use the following SQL query to get information about that value:
SQL-Abfrage
SELECTSUM(total)
FROM kpps1_invoice
WHEREtimeBETWEEN UNIX_TIMESTAMP('2017-01-01 00:00:00') AND UNIX_TIMESTAMP('2017-12-31 23:59:59');
You just need to edit the two given dates in line 3. The example above shows the total sum, the tax sum, the net sum and the country code, ordered and summarized by the country code between 2017-01-01 00:00:00 and 2017-12-31 23:59:59.