Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dbarzin/deming
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jul 28, 2023
2 parents b7bba90 + f15e838 commit 41b52d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ private function generateControlTable(TemplateProcessor $templateProcessor)
'
SELECT
c1.measure_id,
c1.domain_id,
c1.score,
c1.realisation_date
max(c1.domain_id) AS "domain_id",
max(c1.score) AS "score",
max(c1.realisation_date) AS "realisation_date"
FROM
controls c1 left join controls c2 on c1.next_id=c2.id
WHERE
c2.realisation_date is null and c1.next_id is not null
group by c1.measure_id order by c1.clause;'
GROUP BY c1.measure_id, c1.clause ORDER BY c1.clause;'
);

$count_domains = count($domains);
Expand Down

0 comments on commit 41b52d5

Please sign in to comment.