Annual Turnover Report

Achtung: Diese Seite ist nur noch Teil eines Archivs und wird in Zukunft entfernt.

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

  1. SELECT SUM(total)
  2. FROM kpps1_invoice
  3. WHERE time BETWEEN 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.
Über den Autor
Ich bin Webentwickler in Stuttgart und administriere Server seit vielen Jahren. In diesem Blog erstelle ich hauptsächlich Tutorials für andere Webentwickler, Webdesigner und Serveradministratoren.
-------------------------------------------------------------------------------------------------------------------------------------
I’m a web developer in Stuttgart, Germany, and server administrator since many years. This blog mainly contains a tutorial set for other web developer, web designer and server administrators.

1.690 mal gelesen

Kommentare 0

Es wurden keine Einträge gefunden.