瀏覽代碼

check claim

ifah
Siti Hajar Ibrahim 5 年之前
父節點
當前提交
7d807b435b
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. 9
    1
      app/Http/Controllers/DS/DealerController.php

+ 9
- 1
app/Http/Controllers/DS/DealerController.php 查看文件

$dataAugustB = $this->returnDataB($company,'2020','8'); $dataAugustB = $this->returnDataB($company,'2020','8');
$dataSeptember = $this->returnDataR($company,'2020','9'); $dataSeptember = $this->returnDataR($company,'2020','9');
$dataOctober = $this->returnDataR($company,'2020','10'); $dataOctober = $this->returnDataR($company,'2020','10');
foreach ($dataAugustR as $key => $d) { foreach ($dataAugustR as $key => $d) {
if(date('m/Y', strtotime($d['submission'])) == $month.'/'.$year){ if(date('m/Y', strtotime($d['submission'])) == $month.'/'.$year){
if(date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){ if(date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){
$countAugustR[] = $d; $countAugustR[] = $d;
} }
}else {
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
$combineData[] = $d;
}
} }
} }
// Store to combineData New Incentive August // Store to combineData New Incentive August
$countAugustB[] = $d; $countAugustB[] = $d;
} }
}else {
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
$combineData[] = $d;
}
} }
} }
// Store to combineData New Incentive August // Store to combineData New Incentive August

Loading…
取消
儲存