diff --git a/commodity/commodity.json b/commodity/commodity.json index ea01c09..542b1b5 100644 --- a/commodity/commodity.json +++ b/commodity/commodity.json @@ -43,7 +43,7 @@ CREATE TABLE \"CommodityData\" ( }, "reports" : [ - { "name" : "Ceník", "description" : "Všechny položky v ceníku", "listReport" : true, "file" : "pokus.lrxml" }, - { "name" : "Nezpalcené účtenky", "description" : "Všechny nezaplacené účtenky", "listReport" : true, "file" : "pokus.lrxml" } + { "name" : "Ceník", "description" : "Všechny položky v ceníku", "listReport" : true, "file" : "commodity_pricelist.lrxml" }, + { "name" : "Všechny položky", "description" : "Všechny položky zboží", "listReport" : true, "file" : "commodity_all_commodities.lrxml" } ] } diff --git a/reports/commodity_all_commodities.lrxml b/reports/commodity_all_commodities.lrxml new file mode 100644 index 0000000..6dd8733 --- /dev/null +++ b/reports/commodity_all_commodities.lrxml @@ -0,0 +1,815 @@ + + + + + + + page1 + + + + + + + + ReportPage1 + + + + PageHeader1 + + + + TextItem1 + + + + + PageHeader1 + + + + + + + Zboží + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ReportPage1 + + + + + + + + + + + + + + + DataBand1 + + + + TextItem5 + + + + + DataBand1 + + + + + + + $D{commodity.id} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem6 + + + + + DataBand1 + + + + + + + $D{commodity.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem7 + + + + + DataBand1 + + + + + + + $S{currencyFormat($D{commodity.price} / 100,"cs_CZ.utf8")} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem8 + + + + + DataBand1 + + + + + + + $D{commodity.code} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem10 + + + + + DataBand1 + + + + + + + $D{commodity.shortName} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem12 + + + + + DataBand1 + + + + + + + $S{$D{commodity.type} == 1 ? "Nápoj" : $D{commodity.type} == 2 ? "Jídlo" : "Ostatní"} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem14 + + + + + DataBand1 + + + + + + + $D{commodity.vat} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem16 + + + + + DataBand1 + + + + + + + $D{commodity.count} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ReportPage1 + + + + + + + + + + + commodity + + + + + + + + + + + + DataHeaderBand1 + + + + TextItem2 + + + + + DataHeaderBand1 + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem3 + + + + + DataHeaderBand1 + + + + + + + name + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem4 + + + + + DataHeaderBand1 + + + + + + + price + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem9 + + + + + DataHeaderBand1 + + + + + + + code + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem11 + + + + + DataHeaderBand1 + + + + + + + short name + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem13 + + + + + DataHeaderBand1 + + + + + + + type + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem15 + + + + + DataHeaderBand1 + + + + + + + vat + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem17 + + + + + DataHeaderBand1 + + + + + + + count + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ReportPage1 + + + + + + + DataBand1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + datasources + + + + prodejna + QSQLITE + $V{dbPath} + + + + + + + + + + + commodity + SELECT * FROM CommodityData + prodejna + + + + + + + + dbPath + /home/jony/Prg/prodejna.db + + + + + + + + + + + diff --git a/reports/commodity_pricelist.lrxml b/reports/commodity_pricelist.lrxml new file mode 100644 index 0000000..4b9decb --- /dev/null +++ b/reports/commodity_pricelist.lrxml @@ -0,0 +1,429 @@ + + + + + + + page1 + + + + + + + + ReportPage1 + + + + PageHeader1 + + + + TextItem1 + + + + + PageHeader1 + + + + + + + Ceník + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ReportPage1 + + + + + + + + + + + + + + + DataBand1 + + + + TextItem5 + + + + + DataBand1 + + + + + + + $S{$D{pricelist.type} == 1 ? "Nápoj":$D{pricelist.type} == 2 ? "Jídlo":"Ostatní"} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem6 + + + + + DataBand1 + + + + + + + $D{pricelist.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem7 + + + + + DataBand1 + + + + + + + $S{currencyFormat($D{pricelist.price} / 100,"cs_CZ.utf8")} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ReportPage1 + + + + + + + + + + + pricelist + + + + + + + + + + + + DataHeaderBand1 + + + + TextItem2 + + + + + DataHeaderBand1 + + + + + + + Typ zboží + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem3 + + + + + DataHeaderBand1 + + + + + + + Název + + + + + + + + + + + + + + + + + + + + + + + + + + + TextItem4 + + + + + DataHeaderBand1 + + + + + + + Cena + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ReportPage1 + + + + + + + DataBand1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + datasources + + + + prodejna + QSQLITE + $V{dbPath} + + + + + + + + + + + pricelist + SELECT cd.name, + cd.price, + cd.type +FROM CommodityData AS cd +ORDER BY cd.type, cd.name + prodejna + + + + + + + + dbPath + /home/jony/Prg/prodejna.db + + + + + + + + + + +