add svc_dsl name to list_svcs output, RT#13656
authorivan <ivan>
Tue, 4 Oct 2011 01:03:58 +0000 (01:03 +0000)
committerivan <ivan>
Tue, 4 Oct 2011 01:03:58 +0000 (01:03 +0000)
FS/FS/ClientAPI/MyAccount.pm

index 32f9f58..e5016d5 100644 (file)
@@ -1379,6 +1379,14 @@ sub list_svcs {
                 # more...
               );
 
+            } elsif ( $svcdb eq 'svc_dsl' ) {
+              if ( $svc_x->first || $svc_x->get('last') || $svc_x->company ) {
+                $hash{'name'} = $svc_x->first. ' '. $svc_x->get('last');
+                $hash{'name'} = $svc_x->company. ' ('. $hash{'name'}. ')'
+                  if $svc_x->company;
+              } else {
+                $hash{'name'} = $cust_main->name;
+              }
             }
             # elsif ( $svcdb eq 'svc_phone' || $svcdb eq 'svc_port' ) {
             #  %hash = (