page1 ReportPage1 PageHeader1 TextItem1 PageHeader1 Přehled DPH ReportPage1 DataBand1 TextItem6 DataBand1 $D{dph.year} TextItem7 DataBand1 $S{ $D{dph.vatRate} / 100} TextItem10 DataBand1 $D{dph.month} TextItem2 DataBand1 $S{currencyFormat($D{dph.total_without_vat} / 100,"cs_CZ.utf8")} TextItem8 DataBand1 $S{currencyFormat($D{dph.vat} / 100,"cs_CZ.utf8")} TextItem13 DataBand1 $S{currencyFormat($D{dph.total} / 100,"cs_CZ.utf8")} ReportPage1 dph DataHeaderBand1 TextItem3 DataHeaderBand1 Rok TextItem4 DataHeaderBand1 sazba DPH TextItem9 DataHeaderBand1 základ daně TextItem11 DataHeaderBand1 Měsíc TextItem5 DataHeaderBand1 DPH TextItem12 DataHeaderBand1 Tržba s DPH ReportPage1 DataBand1 datasources prodejna QSQLITE $V{dbPath} dph select strftime('%Y',insertDate) AS year, strftime('%m',insertDate) AS month, -- vatType, vatRate, SUM(price) AS total, SUM(priceWitouthVat) AS total_without_vat, SUM(price) - SUM(priceWitouthVat) AS vat from VoucherItem AS vi WHERE vatType != 0 GROUP BY year, month, -- vatType, vatRate ORDER BY year,month,vatRate; prodejna dbPath C:/Users/prodejna/Documents/prodejna/kiosek.db