From: Thomas Mudrunka Date: Thu, 19 Jul 2012 18:10:14 +0000 (+0200) Subject: Pocet veci se seriakem X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5cf679eb7c9ff425cdabded1d31efefe073da4f1;p=mirrors%2FSokoMan.git Pocet veci se seriakem --- diff --git a/assistants/stats/roster.inc.php b/assistants/stats/roster.inc.php index 8f5e4d5..6940ce2 100644 --- a/assistants/stats/roster.inc.php +++ b/assistants/stats/roster.inc.php @@ -1,7 +1,7 @@ - "select model_id, model_name, model_barcode, group_concat(item_serial separator ', ') from item LEFT JOIN model USING(model_id) WHERE item_valid_till=0 AND status_id=1 AND model_countable=1 GROUP BY model_id ORDER BY model_name", + "select model_id, model_name, model_barcode, count(item_serial), group_concat(item_serial separator ', ') from item LEFT JOIN model USING(model_id) WHERE item_valid_till=0 AND status_id=1 AND model_countable=1 GROUP BY model_id ORDER BY model_name", "Inventurni soupiska věcí na počet (Warehouse roster uncountable)"=> "select model_id, model_name, model_barcode, sum(item_quantity) from item LEFT JOIN model USING(model_id) WHERE item_valid_till=0 AND status_id=1 AND model_countable=0 GROUP BY model_id ORDER BY model_name" );