Browse Source

check claim

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

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

} }
// 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);

Loading…
Cancel
Save