Browse Source

adjust how to get category in WO

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
f8c94dd48a
1 changed files with 16 additions and 16 deletions
  1. 16
    16
      app/Http/Controllers/CustomerService/WorkOrderController.php

+ 16
- 16
app/Http/Controllers/CustomerService/WorkOrderController.php View File

$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }
$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = ''; $category = '';
}else { }else {
$category = $form->customer_category; $category = $form->customer_category;
$name = $form->Subscriber->company_name; $name = $form->Subscriber->company_name;
} }


if(empty($product)){
$product = 'R Mbps';
if(empty($product)){ $product = 'R Mbps';
}else { }else {
$product = $product->package_name; $product = $product->package_name;
} }
$company = $company->name; $company = $company->name;
} }


if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
}
array_push($nested_data, array( array_push($nested_data, array(
'formT' => $n1.$i.$form->type_application, 'formT' => $n1.$i.$form->type_application,
'service' => $w->nature_work, 'service' => $w->nature_work,
'wo' => $w->WorkOrder->wo, 'wo' => $w->WorkOrder->wo,
'category' => $category,
'name' => $name, 'name' => $name,
'phone' => $form->Subscriber->phone1, 'phone' => $form->Subscriber->phone1,
'unit' => $unit, 'unit' => $unit,

Loading…
Cancel
Save