Merge branch 'feature/archiefoptie-ondersteuningsvorm' into develop
This commit is contained in:
@@ -19,6 +19,24 @@ class Aantalxondersteuningsvorm_model extends MY_Model{
|
||||
AND ondersteuningsvorm_id = {$ondersteuningsvorm}";
|
||||
return $this->get_query_row();
|
||||
}
|
||||
|
||||
function getdetails($groepid, $ondersteuningsvorm){
|
||||
$this->sql = " SELECT *
|
||||
FROM tb_aantalxondersteuningsvorm
|
||||
WHERE groep_id = {$groepid}
|
||||
AND ondersteuningsvorm_id = {$ondersteuningsvorm}";
|
||||
return $this->get_query_row();
|
||||
}
|
||||
|
||||
function aantalGebruikt($orgid, $groepid, $ondersteuningsvorm){
|
||||
$this->sql = " SELECT SUM(aantal) AS aantal
|
||||
FROM tb_aantalxondersteuningsvorm
|
||||
WHERE organisatie_id = {$orgid}
|
||||
AND ondersteuningsvorm_id = {$ondersteuningsvorm}
|
||||
AND groep_id <> {$groepid}";
|
||||
return $this->get_query_row('aantal');
|
||||
}
|
||||
|
||||
function getaantallen($vormid, $orgid,$schooljaarnr, $groepids){
|
||||
$this->sql ="SELECT G.id, G.naam, IF(AOS.id,aantal,0) AS aantal
|
||||
FROM tb_groepen G
|
||||
|
||||
Reference in New Issue
Block a user