3dgrafieken

This commit is contained in:
Monique
2022-03-01 17:26:51 +01:00
parent 0aecc25074
commit a2561eb081
2 changed files with 21 additions and 6 deletions
@@ -97,4 +97,16 @@ class Licenties_model extends MY_Model{
}
function getLicentieBijSoponderdeel($orgid, $onderdeelnummer, $orgsoort){
$this->sql = " SELECT L.modulenr
FROM tb_licenties L
JOIN tb_sop_piv_modules SPM ON L.modulenr = SPM.modulenr
JOIN tb_compactonderdeel_piv_orgsoort CPO ON SPM.onderdeel_nr = CPO.onderdeel_nr
WHERE L.orgid = {$orgid}
AND CPO.onderdeel_nr = {$onderdeelnummer}
AND CPO.org_soort = {$orgsoort} ";
return $this->get_query_row("modulenr");
}
}