nieuwe onderst. vorm ook opslaan als aantal 0 is
This commit is contained in:
@@ -37,14 +37,13 @@ class Aantalxondersteuningsvorm_model extends MY_Model{
|
||||
return $this->get_query_row('aantal');
|
||||
}
|
||||
|
||||
function getaantallen($vormid, $orgid,$schooljaarnr, $groepids){
|
||||
function getaantallen($vormid, $orgid){
|
||||
$this->sql ="SELECT G.id, G.naam, IF(AOS.id,aantal,0) AS aantal
|
||||
FROM tb_groepen G
|
||||
LEFT JOIN tb_aantalxondersteuningsvorm AOS ON ( G.id = AOS.groep_id
|
||||
AND AOS.ondersteuningsvorm_id = {$vormid})
|
||||
WHERE G.organisatie_id = {$orgid}
|
||||
AND G.schooljaarnr= {$schooljaarnr}
|
||||
AND G.id IN ({$groepids})
|
||||
|
||||
ORDER BY G.niveau, G.naam, G.id";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user