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