tussenopslag
This commit is contained in:
@@ -186,5 +186,19 @@ class Orgversies_model extends MY_Model{
|
||||
ORDER BY UPPER(omschrijving) DESC";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
|
||||
|
||||
function getOrgVersiesBijSop($swvid, $modulenr){
|
||||
$this->sql = "SELECT OV.id,V.naam
|
||||
FROM tb_orgversies OV
|
||||
JOIN tb_versies V ON V.id =OV.versie_id
|
||||
JOIN tb_organisaties O ON OV.organisatie_id = O.id
|
||||
WHERE (O.id = {$swvid} OR O.valtonder_id = {$swvid})
|
||||
AND V.modulenr = {$modulenr}
|
||||
|
||||
";
|
||||
return $this->get_query_result();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user