|
|
@@ -2779,7 +2779,7 @@ class DealerController extends Controller |
|
|
|
foreach ($combineData as $key => $d) { |
|
|
|
if(count($combineData) >= 50){ |
|
|
|
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ |
|
|
|
|
|
|
|
info("1". $d['wo']); |
|
|
|
if($d['contract'] == '12'){ |
|
|
|
array_push($combineData, array( |
|
|
|
'index' => $d['index'], |
|
|
@@ -2797,7 +2797,7 @@ class DealerController extends Controller |
|
|
|
)); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
info("2". $d['wo']); |
|
|
|
$total = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])) * 2.5 + 50, 2); |
|
|
|
array_push($combineData, array( |
|
|
|
'index' => $d['index'], |
|
|
@@ -2817,6 +2817,7 @@ class DealerController extends Controller |
|
|
|
} |
|
|
|
}else if(count($combineData) < 50){ |
|
|
|
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ |
|
|
|
info("3". $d['wo']); |
|
|
|
if($d['contract'] == '12'){ |
|
|
|
array_push($combineData, array( |
|
|
|
'index' => $d['index'], |
|
|
@@ -2833,6 +2834,7 @@ class DealerController extends Controller |
|
|
|
'claim' => $d['claim'], |
|
|
|
)); |
|
|
|
}else { |
|
|
|
info("4". $d['wo']); |
|
|
|
$total = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])) * 2.5, 2); |
|
|
|
array_push($combineData, array( |
|
|
|
'index' => $d['index'], |