Browse Source

edit ayerKeroh more than 50

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
8d87b88ba9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/Http/Controllers/DS/DealerController.php

+ 2
- 2
app/Http/Controllers/DS/DealerController.php View File



// Store to combineData New Incentives Ayer Keroh // Store to combineData New Incentives Ayer Keroh
foreach ($count_ayerKeroh as $key => $d) { foreach ($count_ayerKeroh as $key => $d) {
if(count($count_ayerKeroh) > 20){
if(count($count_ayerKeroh) > 50){


if($d['contract'] == '12'){ if($d['contract'] == '12'){




} }


}else if(count($count_ayerKeroh) < 20){
}else if(count($count_ayerKeroh) < 50){
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
array_push($combineData, array( array_push($combineData, array(
'index' => $d['index'], 'index' => $d['index'],

Loading…
Cancel
Save