Browse Source

adjust how to get category in WO

ifah
Siti Hajar Ibrahim 4 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

@@ -299,8 +299,8 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}
$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -415,8 +415,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -531,8 +530,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -650,8 +648,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -766,8 +763,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -883,8 +879,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -999,8 +994,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

$category = $form->customer_category;
if(empty($category)){
if(empty($form->customer_category)){
$category = '';
}else {
$category = $form->customer_category;
@@ -1116,8 +1110,7 @@ class WorkOrderController extends Controller
$name = $form->Subscriber->company_name;
}

if(empty($product)){
$product = 'R Mbps';
if(empty($product)){ $product = 'R Mbps';
}else {
$product = $product->package_name;
}
@@ -1128,10 +1121,17 @@ class WorkOrderController extends Controller
$company = $company->name;
}

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

Loading…
Cancel
Save