| @@ -222,8 +222,10 @@ class DealerController extends Controller | |||
| $address = ''; $name = ''; | |||
| if($f->type_application == 'R'){ | |||
| $address = $f->Subscriber->building_name; | |||
| $name = $f->Subscriber->name; | |||
| if (!empty($f->Subscriber->building_name)){ | |||
| $address = $f->Subscriber->building_name; | |||
| $name = $f->Subscriber->name; | |||
| } | |||
| }else if($f->type_application == 'B'){ | |||
| $address = '-'; | |||
| $name = $f->Subscriber->company_name; | |||