zapujceny HW
authorThomas Mudrunka <tomas@mudrunka.cz>
Mon, 12 May 2014 17:21:39 +0000 (19:21 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Mon, 12 May 2014 17:21:39 +0000 (19:21 +0200)
assistants/stats/financial.inc.php

index 92bc51b8300377256541139e3fa55d0a8b9886d2..fae0ee276f449b0445432a050791f8ce46f3cdbb 100644 (file)
@@ -33,4 +33,6 @@ $queries += array( //TODO: use build_query_select()!!!
                                SUM(item_price_out)
                                -(SELECT SUM(item_price_in) FROM item WHERE item_valid_till=0$month_sql_bought)
                        ) FROM item WHERE item_valid_till=0 AND ( status_id = 3 )$month_sql_sold",
+       "Zapůjčený HW dle LMS id"
+               => 'SELECT item_customer, SUM(item_price_in) FROM item WHERE status_id=6 AND item_valid_till=0 GROUP BY item_customer ORDER BY SUM(item_price_in) DESC;'
 );
This page took 0.161395 seconds and 4 git commands to generate.