Browse Source

fix curva S site

pull/3/head
ibnu 2 years ago
parent
commit
02eff6fb8c
  1. 4
      app/Helpers/MasterFunctionsHelper.php

4
app/Helpers/MasterFunctionsHelper.php

@ -225,7 +225,7 @@ class MasterFunctionsHelper {
// $sumPercentageActual+=($keyActualM->qty/$sumVolActual->ttl_qty_plan)*$keyActualM->bobot_planning; // $sumPercentageActual+=($keyActualM->qty/$sumVolActual->ttl_qty_plan)*$keyActualM->bobot_planning;
// if($keyActualM->qty/$sumVolActual->ttl_qty_plan >= 1){ // if($keyActualM->qty/$sumVolActual->ttl_qty_plan >= 1){
if($checkStatusActivity->status_activity == 'done'){ if($checkStatusActivity->status_activity == 'done'){
$sumPercentageActual+=($keyActualM->qty/$sumVolActual->ttl_qty_plan)*$keyActualM->bobot_planning; $sumPercentageActual+=$keyActualM->bobot_planning;
// $sumPercentageActual = $sumPercentageActual > $keyGantt['progress'] ? $keyGantt['progress'] : $sumPercentageActual; // $sumPercentageActual = $sumPercentageActual > $keyGantt['progress'] ? $keyGantt['progress'] : $sumPercentageActual;
}else{ }else{
if($keyActualM->qty/$sumVolActual->ttl_qty_plan >= 1){ if($keyActualM->qty/$sumVolActual->ttl_qty_plan >= 1){
@ -271,7 +271,7 @@ class MasterFunctionsHelper {
// $tempTtlPercentPlan = 100; // $tempTtlPercentPlan = 100;
if($tempTtlPercentActual >= $keyGantt['progress']) if($tempTtlPercentActual >= $keyGantt['progress'])
$tempTtlPercentActual = $keyGantt['progress']; $tempTtlPercentActual = $keyGantt['progress'];
if($tempTtlPercentPlan >= 100) if($tempTtlPercentPlan >= 100)
$tempTtlPercentPlan = 100; $tempTtlPercentPlan = 100;
// $sumPercentageActual > $keyGantt['progress'] ? $keyGantt['progress'] : $sumPercentageActual // $sumPercentageActual > $keyGantt['progress'] ? $keyGantt['progress'] : $sumPercentageActual

Loading…
Cancel
Save