Переименование отчёта по заготовкам
This commit is contained in:
7
App/Report/sql/workpiece_report.sql
Normal file
7
App/Report/sql/workpiece_report.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
SELECT w.material AS Наименование,
|
||||
sum(sum) AS Сумма,
|
||||
sum(reports.count) AS Количество
|
||||
from reports
|
||||
JOIN workpiece w ON reports.item_id = w.work_id
|
||||
WHERE report_category_id = '$id' AND (month = '$month' AND year = '$year')
|
||||
GROUP BY material;
|
||||
Reference in New Issue
Block a user