|
|
|
@ -71,12 +71,14 @@ class MasterFunctionsHelper {
|
|
|
|
|
// foreach ($gantt as $key => $value) { |
|
|
|
|
// Log::info('gantt '.$value.' index '.$key); |
|
|
|
|
// } |
|
|
|
|
if($gantt['calculation_type'] == 'simple') { |
|
|
|
|
// to do |
|
|
|
|
return MasterFunctionsHelper::calculateProgressBasedOnSimple($gantt); |
|
|
|
|
} else { |
|
|
|
|
return MasterFunctionsHelper::calculateProgressBasedOnReportMaterial($gantt); |
|
|
|
|
} |
|
|
|
|
if (isset($gantt['calculation_type'])) { |
|
|
|
|
if($gantt['calculation_type'] == 'simple') { |
|
|
|
|
// to do |
|
|
|
|
return MasterFunctionsHelper::calculateProgressBasedOnSimple($gantt); |
|
|
|
|
} else { |
|
|
|
|
return MasterFunctionsHelper::calculateProgressBasedOnReportMaterial($gantt); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|