|
@@ -150,7 +150,12 @@ class AnnualPlansController extends \BaseController
|
150
|
150
|
//Dame los annual plans que esten dentro del three year plan
|
151
|
151
|
|
152
|
152
|
|
153
|
|
- $annual_plans = DB::select("
|
|
153
|
+ $annual_plans = DB::table('annual_cycle')
|
|
154
|
+ ->join('annual_plans', 'annual_cycle_id', '=', 'annual_cycle.id')
|
|
155
|
+ ->where('program_id', $program_id)
|
|
156
|
+ ->orderBy('semester_start')
|
|
157
|
+ ->get();
|
|
158
|
+ /*$annual_plans = DB::select("
|
154
|
159
|
|
155
|
160
|
select
|
156
|
161
|
academic_year,
|
|
@@ -173,7 +178,7 @@ class AnnualPlansController extends \BaseController
|
173
|
178
|
join typ_program on typ_semester_outcome.typ_program_id = typ_program.id
|
174
|
179
|
where program_id = {$program_id} )
|
175
|
180
|
)
|
176
|
|
- order by semester_start desc");
|
|
181
|
+ order by semester_start desc");*/
|
177
|
182
|
// $annual_plans = DB::select("select academic_year, semester_start, semester_end, program_id, annual_plans.id as id from annual_plans, annual_cycle where program_id = {$program_id} and annual_cycle.id = annual_plans.annual_cycle_id order by annual_plans.id desc ");
|
178
|
183
|
// Log::info($annual_plans);
|
179
|
184
|
$outcomes = array();
|