diff --git a/APPL/FAC/fac_nieuws.asp b/APPL/FAC/fac_nieuws.asp index bc099a3689..8076abec75 100644 --- a/APPL/FAC/fac_nieuws.asp +++ b/APPL/FAC/fac_nieuws.asp @@ -1,7 +1,7 @@ <%@ language = "JavaScript" %> <% /* - $Revision: 1 $ - $Modtime: 2-09-09 12:59 $ + $Revision: 2 $ + $Modtime: 23-10-09 19:54 $ File: fac_nieuws.asp Status: GEREED @@ -35,12 +35,13 @@ + " AND og.alg_gebouw_key = g.alg_gebouw_key " + " AND g.alg_locatie_key = l.alg_locatie_key " + " AND l.alg_district_key = d.alg_district_key) pl " - + " WHERE (pl.alg_gebouw_key = n.fac_nieuws_onrgoed_key AND n.fac_nieuws_onrgoed_niveau = 'G') " + + " WHERE ((pl.alg_gebouw_key = n.fac_nieuws_onrgoed_key AND n.fac_nieuws_onrgoed_niveau = 'G') " + " OR (pl.alg_locatie_key = n.fac_nieuws_onrgoed_key AND n.fac_nieuws_onrgoed_niveau = 'L') " + " OR (pl.alg_district_key = n.fac_nieuws_onrgoed_key AND n.fac_nieuws_onrgoed_niveau = 'D') " + " OR (pl.alg_regio_key = n.fac_nieuws_onrgoed_key AND n.fac_nieuws_onrgoed_niveau = 'R') " - + " AND (n.fac_nieuws_van IS NULL OR n.fac_nieuws_van >= SYSDATE) " - + " AND (n.fac_nieuws_tot IS NULL OR n.fac_nieuws_van < SYSDATE) " + + " OR (n.fac_nieuws_onrgoed_key IS NULL)) " + + " AND (n.fac_nieuws_van IS NULL OR SYSDATE >= n.fac_nieuws_van) " + + " AND (n.fac_nieuws_tot IS NULL OR SYSDATE < n.fac_nieuws_tot) " + " ORDER BY fac_nieuws_key DESC"; %>