| } | } | ||||
| // 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($countAugustR) >= 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']); | |||||
| array_push($combineData, array( | array_push($combineData, array( | ||||
| 'index' => $d['index'], | 'index' => $d['index'], | ||||
| 'contract' => $d['contract'], | 'contract' => $d['contract'], | ||||
| )); | )); | ||||
| }else { | }else { | ||||
| info('Contract 24 '. $d['wo']. ' '. $d['submission']); | |||||
| if ($d['package']== 50){ | if ($d['package']== 50){ | ||||
| $finalprice = 69; | $finalprice = 69; | ||||
| $total = number_format(69 * 2.5 + 50, 2); | $total = number_format(69 * 2.5 + 50, 2); |