| @@ -283,16 +283,14 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -394,15 +392,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -504,15 +500,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -617,15 +611,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -727,15 +719,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -838,15 +828,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -948,15 +936,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||
| @@ -1059,15 +1045,13 @@ class WorkOrderController extends Controller | |||
| } | |||
| $building = ''; $unit = '-'; $name = ''; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| if($form->type_application == 'R'){ | |||
| $name = $form->Subscriber->name; | |||
| $building = $form->Subscriber->building_name; | |||
| $unit = $form->Subscriber->unit_no; | |||
| }else if($form->type_application == 'B'){ | |||
| $unit = $form->Subscriber->unit_no; | |||
| $name = $form->Subscriber->company_name; | |||
| $building = $form->Subscriber->street; | |||
| } | |||
| if(empty($product)){ | |||