You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ede/ede/validation_functions/fn9_registro_atencion_profesionales_y_recursos_relacionados_con_la_formacion_del_estudiante/fn9F1.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@ def fn9F1(conn, return_dict):
31
31
O.OrganizationId
32
32
FROM Organization O
33
33
WHERE
34
-
O.RefOrganizationTypeId IN (
34
+
O.RecordEndDateTime IS NULL
35
+
AND O.RefOrganizationTypeId IN (
35
36
SELECT RefOrganizationTypeId
36
37
FROM RefOrganizationType
37
38
WHERE Code IN ('CourseSection')
@@ -62,6 +63,7 @@ def fn9F1(conn, return_dict):
62
63
JOIN CourseSection CS
63
64
ON CS.OrganizationId = O.OrganizationId
64
65
AND CS.RecordEndDateTime IS NULL
66
+
AND O.RecordEndDateTime IS NULL
65
67
JOIN CourseSectionSchedule CSS
66
68
ON CSS.OrganizationId = O.OrganizationId
67
69
AND CSS.RecordEndDateTime IS NULL
@@ -70,9 +72,10 @@ def fn9F1(conn, return_dict):
70
72
71
73
JOIN OrganizationCalendar orgCal
72
74
ON orgCal.OrganizationId = O.OrganizationId
73
-
AND CSS.RecordEndDateTime IS NULL
75
+
AND orgCal.RecordEndDateTime IS NULL
74
76
JOIN OrganizationCalendarSession ocs
75
77
ON ocs.OrganizationCalendarId = orgCal.OrganizationCalendarId
0 commit comments