fout als aanta lln 0 is

This commit is contained in:
Monique
2022-01-24 13:20:44 +01:00
parent b8b071f338
commit b12ca62443
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -61,7 +61,9 @@ class MY_Controller extends CI_Controller{
// public $version = '1.17.83'; // sophomepage
// public $version = '1.17.84'; // zichtbaarheid paginas afhankelijk van orgsoort
// public $version = '1.17.85'; // fouten divmeter po 2203 in compact
public $version = '1.17.86'; // titels en headers sop
// public $version = '1.17.86'; // titels en headers sop
public $version = '1.17.87'; // afvangen dat llaantal ook 0 kan zijn
public $partituurid;
public $globProfielVersieID = 1;
+2 -2
View File
@@ -41,7 +41,7 @@ class Groepen_model extends MY_Model{
}
function get_AantalGroepen($schooljaarnr, $orgid, $module){
$this->sql = " SELECT COUNT(id) as aantal
$this->sql = " SELECT COUNT(COALESCE(id, 0)) 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(totaantal) AS aantallln
$this->sql="SELECT SUM(COALESCE(totaantal, 0)) AS aantallln
FROM tb_groepen
WHERE organisatie_id ={$orgid}
AND schooljaarnr = {$schooljaarnr}