|
|
@ -147,7 +147,7 @@ class ReportActivityMaterialController extends Controller |
|
|
|
->join("m_req_material as m", "m.id", "=", "assign_material_to_activity.material_id") |
|
|
|
->join("m_req_material as m", "m.id", "=", "assign_material_to_activity.material_id") |
|
|
|
->where('assign_material_to_activity.activity_id', $id_activity) |
|
|
|
->where('assign_material_to_activity.activity_id', $id_activity) |
|
|
|
->where('assign_material_to_activity.id', $id_am) |
|
|
|
->where('assign_material_to_activity.id', $id_am) |
|
|
|
->where('m.id', $materialId) |
|
|
|
->where('m.description', $materialName) |
|
|
|
->orderBy('assign_material_to_activity.id', 'asc') |
|
|
|
->orderBy('assign_material_to_activity.id', 'asc') |
|
|
|
->get(); |
|
|
|
->get(); |
|
|
|
if ($baselineDuration > 0) { |
|
|
|
if ($baselineDuration > 0) { |
|
|
@ -176,7 +176,7 @@ class ReportActivityMaterialController extends Controller |
|
|
|
->join("m_req_material as m", "m.id", "=", "amta.material_id") |
|
|
|
->join("m_req_material as m", "m.id", "=", "amta.material_id") |
|
|
|
->join("m_users as u", "u.id", "=", "report_activity_material.user_id") |
|
|
|
->join("m_users as u", "u.id", "=", "report_activity_material.user_id") |
|
|
|
->where('report_activity_material.activity_id', $id_activity) |
|
|
|
->where('report_activity_material.activity_id', $id_activity) |
|
|
|
->where('m.id', $materialId) |
|
|
|
->where('m.description', $materialName) |
|
|
|
->orderBy('report_activity_material.report_date', 'asc') |
|
|
|
->orderBy('report_activity_material.report_date', 'asc') |
|
|
|
->get(); |
|
|
|
->get(); |
|
|
|
if ($baselineDuration > 0) { |
|
|
|
if ($baselineDuration > 0) { |
|
|
|