|
|
|
@ -36,7 +36,8 @@ class MasterFunctionsHelper
|
|
|
|
|
return json_decode($output); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static function countDays($ganttId, $start, $end){ |
|
|
|
|
public static function countDays($ganttId, $start, $end) |
|
|
|
|
{ |
|
|
|
|
$dayOffs = VersionGantt::where('id', $ganttId)->first()->config_dayoff; |
|
|
|
|
$diff = date_diff($start, $end); |
|
|
|
|
$endCount = clone $end; |
|
|
|
@ -712,9 +713,6 @@ class MasterFunctionsHelper
|
|
|
|
|
// if ($tempTtlPercentPlan >= 100) |
|
|
|
|
// $tempTtlPercentPlan = 100; |
|
|
|
|
|
|
|
|
|
if ($tempTtlPercentPlan >= 100) |
|
|
|
|
$tempTtlPercentPlan = 100; |
|
|
|
|
|
|
|
|
|
$currentACWP += $totalACWP; |
|
|
|
|
$currentBCWP += $totalBCWP; |
|
|
|
|
|
|
|
|
@ -1009,5 +1007,4 @@ class MasterFunctionsHelper
|
|
|
|
|
|
|
|
|
|
return $dataFinal; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|