| $address = $f->Subscriber->postcode. ' , '.$f->Subscriber->city. ' , '.$f->Subscriber->state; | $address = $f->Subscriber->postcode. ' , '.$f->Subscriber->city. ' , '.$f->Subscriber->state; | ||||
| } | } | ||||
| $woD = '-'; $woId = 'none'; $natureWork = ''; $doId = ''; $woRate="";$installerId=""; | |||||
| $woD = '-'; $woId = 'none'; $natureWork = ''; $doId = ''; $woRate=""; $installerId=""; | |||||
| if(!empty($f->WorkOrder)){ | if(!empty($f->WorkOrder)){ | ||||
| $woId = $f->WorkOrder->wo; | $woId = $f->WorkOrder->wo; | ||||
| $natureWork = $f->WorkOrder->nature_work; | $natureWork = $f->WorkOrder->nature_work; | ||||
| if(!empty($f->WorkOrder->Docket)){ | if(!empty($f->WorkOrder->Docket)){ | ||||
| $woD = $f->WorkOrder->Docket->end_job; | $woD = $f->WorkOrder->Docket->end_job; | ||||
| $woRate = $f->WorkOrder->Docket->Rating1; | $woRate = $f->WorkOrder->Docket->Rating1; | ||||
| $installerId = $f->WordOrder->Docket->installer_id; | |||||
| // $installerId = $f->WordOrder->Docket->installer_id; | |||||
| // array_push($result,array( | // array_push($result,array( | ||||
| // 'type_application' => $f->type_application, | // 'type_application' => $f->type_application, | ||||
| // 'activated_date' => $woD, | // 'activated_date' => $woD, | ||||
| // )); | // )); | ||||
| array_push($result,array( | array_push($result,array( | ||||
| 'Installer' => $installerId, | |||||
| // 'Installer' => $installerId, | |||||
| 'Dealer Name' => $labelD, | 'Dealer Name' => $labelD, | ||||
| "Customer Name"=> $name, | "Customer Name"=> $name, | ||||
| "Contact Number"=> $contact_no, | "Contact Number"=> $contact_no, |