tussenopslag
This commit is contained in:
@@ -516,6 +516,19 @@ class Scores_model extends MY_Model{
|
||||
return $this->get_query_row();
|
||||
}
|
||||
|
||||
function fCountGevuldeVersiesNieuw($orgversieid, $orgids){
|
||||
$this->sql =" SELECT COUNT(DISTINCT filledversion_id) as aantal, COUNT(DISTINCT(O.id)) AS aantalorgs
|
||||
FROM tb_scores S
|
||||
JOIN tb_filledversions FV ON FV.id = S.filledversion_id
|
||||
JOIN tb_organisaties O ON FV.organisatie_id = O.id
|
||||
WHERE FV.orgversie_id = {$orgversieid}
|
||||
AND FV.organisatie_id IN ({$orgids})
|
||||
AND FV.meetellen = 1
|
||||
AND S.score > 0
|
||||
HAVING COUNT(S.id) >= 5";
|
||||
return $this->get_query_row();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function fGetGevuldeBestuurVersie($orgversieid, $bgid){
|
||||
|
||||
Reference in New Issue
Block a user