Browse Source

edit calculation claim

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

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

if((date('m/Y', strtotime($d['submission'])) == $month.'/'.$year) && date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){ if((date('m/Y', strtotime($d['submission'])) == $month.'/'.$year) && date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){
$countAugustR[] = $d; $countAugustR[] = $d;
}else { }else {
info ($d['wo'] . ' ' . $d['submission']);
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
$combineData[] = $d; $combineData[] = $d;
} }
} }


foreach ($dataAugustB as $key => $d) { foreach ($dataAugustB as $key => $d) {
if(date('m/Y', strtotime($d['submission'])) == $month.'/'.$year){
if(date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){
if((date('m/Y', strtotime($d['submission'])) == $month.'/'.$year) && date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){
$countAugustB[] = $d; $countAugustB[] = $d;
}
}else { }else {
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
$combineData[] = $d; $combineData[] = $d;
} }


foreach ($dataSeptemberR as $key => $d) { foreach ($dataSeptemberR as $key => $d) {
if((date('m/Y', strtotime($d['submission'])) == $month.'/'.$year) && date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){
if(((date('m/Y', strtotime($d['submission'])) == '8/2020') && (date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020')) || (date('m/Y', strtotime($d['submission'])) == $month.'/'.$year)){
$countSeptemberR[] = $d; $countSeptemberR[] = $d;
}else { }else {
info ($d['wo'] . ' ' . $d['submission']);
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
$combineData[] = $d; $combineData[] = $d;
} }
} }


foreach ($dataSeptemberB as $key => $d) { foreach ($dataSeptemberB as $key => $d) {
if(date('m/Y', strtotime($d['submission'])) == $month.'/'.$year){
if(date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020'){
$countSeptemberB[] = $d;
}
if(((date('m/Y', strtotime($d['submission'])) == '8/2020') && (date('d/m/Y', strtotime($d['submission'])) >= '11/8/2020')) || (date('m/Y', strtotime($d['submission'])) == $month.'/'.$year)){
$countSeptemberB[] = $d;
}else { }else {
if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){ if(date('m/Y', strtotime($d['activation'])) == $month.'/'.$year){
$combineData[] = $d; $combineData[] = $d;

Loading…
Cancel
Save