tussenopslag

This commit is contained in:
Monique
2022-04-28 20:47:54 +02:00
parent d26974e69f
commit 573332e28a
16 changed files with 306 additions and 234 deletions
+15 -1
View File
@@ -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();
}
}