3 "Ceník + Počet kusů skladem (PriceList + Stock)"
4 => 'SELECT room_id,room_name,model_id,model_name,barcode_name,model_price_out,COUNT(item_id),SUM(item_quantity)'.
5 ' FROM item LEFT JOIN barcode USING(barcode_id) LEFT JOIN model USING(model_id) LEFT JOIN room USING(room_id)'.
6 ' WHERE item_valid_till=0 AND status_id=1'.
7 ' GROUP BY model_id,room_id'.
8 ' ORDER BY room_id,model_id;'
This page took 0.328584 seconds and 4 git commands to generate.