sopversie functies alleen doorlopen met licentie

This commit is contained in:
Monique
2022-01-24 13:47:53 +01:00
parent b12ca62443
commit 0b969b4841
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ class Groepen_model extends MY_Model{
}
function get_AantalGroepen($schooljaarnr, $orgid, $module){
$this->sql = " SELECT COUNT(COALESCE(id, 0)) as aantal
$this->sql = " SELECT COUNT(id) as aantal
FROM tb_groepen
WHERE organisatie_id = {$orgid}
AND schooljaarnr = {$schooljaarnr}
@@ -50,7 +50,7 @@ class Groepen_model extends MY_Model{
}
function getversiesmetleerlingengoedeversie($orgid, $schooljaarnr, $schooltype, $module){
$this->sql="SELECT SUM(COALESCE(totaantal, 0)) AS aantallln
$this->sql="SELECT SUM(totaantal) AS aantallln
FROM tb_groepen
WHERE organisatie_id ={$orgid}
AND schooljaarnr = {$schooljaarnr}