Browse Source

remove tracker

ifah
root 5 years ago
parent
commit
2d553ec06f
1 changed files with 0 additions and 14 deletions
  1. 0
    14
      app/Http/Controllers/CustomerService/CustomerController.php

+ 0
- 14
app/Http/Controllers/CustomerService/CustomerController.php View File

} }
if(!empty($form)){ if(!empty($form)){
info('not empty form');
foreach ($form as $key => $f) { foreach ($form as $key => $f) {
info('loop');
info($key);
info($f);
if(empty($f->WorkOrder)){ if(empty($f->WorkOrder)){
info('empty work order');
$i++; $i++;


$n1 = ''; $n1 = '';
}else{ }else{
$labelD = ""; $labelD = "";
} }
info('entry not empty subscriber');
if(!empty($f->Subscriber)){ if(!empty($f->Subscriber)){
info('not empty subscriber');
if($f->Subscriber->street != ''){ if($f->Subscriber->street != ''){
$street = $f->Subscriber->street; $street = $f->Subscriber->street;
} }


$wo = ''; $wo = '';
if($f->status_email == 'verified'){ if($f->status_email == 'verified'){
info('status email verified');
$work_order = ''; $work_order = '';
if($f->type_application == 'R'){ if($f->type_application == 'R'){
info('type application R');
do { do {
$work_order = 'WO-'.$this->createWorkID(4); $work_order = 'WO-'.$this->createWorkID(4);
} }


}else if($f->type_application == 'B'){ }else if($f->type_application == 'B'){
info('type application B');
do { do {
info('init loop');
$work_order = 'WO-'.$this->createWorkID(4); $work_order = 'WO-'.$this->createWorkID(4);
} while (WorkOrder::where("wo", "=", $work_order)->first() instanceof WorkOrder); } while (WorkOrder::where("wo", "=", $work_order)->first() instanceof WorkOrder);
info('exit loop');
$wo = $work_order.'/'.$f->Subscriber->subscriber_id; $wo = $work_order.'/'.$f->Subscriber->subscriber_id;
$cov = Coverage::where('building_name',$f->Subscriber->building_name)->where('Type','B')->first(); $cov = Coverage::where('building_name',$f->Subscriber->building_name)->where('Type','B')->first();
if(!empty($cov)){ if(!empty($cov)){
info('not empty coverage');
if($cov->status_building == 'non prelaid'){ if($cov->status_building == 'non prelaid'){
$wo = 'Non/'.$work_order.'/'.$f->Subscriber->subscriber_id; $wo = 'Non/'.$work_order.'/'.$f->Subscriber->subscriber_id;
} }
}else if($f->PackageDetail->voice_fee == ''){ }else if($f->PackageDetail->voice_fee == ''){
$nP = '-'; $nP = '-';
} }
info('before array push');
array_push($nested_data, array( array_push($nested_data, array(
'formT' => $n1.$i.$f->type_application, 'formT' => $n1.$i.$f->type_application,
'type' => $f->type_service, 'type' => $f->type_service,

Loading…
Cancel
Save