| @@ -2791,7 +2791,7 @@ class DealerController extends Controller | |||
| // Store to combineData New Incentive August | |||
| foreach ($countAugustR as $key => $d) { | |||
| info('R '. $d['wo']. ' '. $d['submission']); | |||
| if(count($countAugustR) >= 50){ | |||
| if(count($dataAugustR) >= 50){ | |||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||
| if($d['contract'] == '12'){ | |||
| info('Contract 12 '. $d['wo']. ' '. $d['submission']); | |||
| @@ -2841,7 +2841,7 @@ class DealerController extends Controller | |||
| )); | |||
| } | |||
| } | |||
| }else if(count($countAugustR) < 50){ | |||
| }else if(count($dataAugustR) < 50){ | |||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||
| if($d['contract'] == '12'){ | |||
| array_push($combineData, array( | |||
| @@ -2902,7 +2902,7 @@ class DealerController extends Controller | |||
| // Store to combineData New Incentive August | |||
| foreach ($countAugustB as $key => $d) { | |||
| info('B ' . $d['wo']. ''. $d['submission']); | |||
| if(count($countAugustB) >= 50){ | |||
| if(count($dataAugustB) >= 50){ | |||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||
| if($d['contract'] == '12'){ | |||
| array_push($combineData, array( | |||
| @@ -2953,7 +2953,7 @@ class DealerController extends Controller | |||
| )); | |||
| } | |||
| } | |||
| }else if(count($countAugustB) < 50){ | |||
| }else if(count($dataAugustB) < 50){ | |||
| if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ | |||
| if($d['contract'] == '12'){ | |||
| array_push($combineData, array( | |||