Browse Source

Calculation type hack

pull/3/head
Wahyu Ramadhan 2 years ago
parent
commit
c052fbce16
  1. 14
      app/Helpers/MasterFunctionsHelper.php

14
app/Helpers/MasterFunctionsHelper.php

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

Loading…
Cancel
Save