diff options
author | ivan <ivan> | 2011-10-04 01:03:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-10-04 01:03:58 +0000 |
commit | 1551c7d41cea8bfa58ea1d3fb489cfb54823e5d8 (patch) | |
tree | 590f7b19fc8e47198ecc9880f07440a69ab938c7 /FS | |
parent | 2997ee62c3bda5da1b0ec9068390c15ec3088ec9 (diff) |
add svc_dsl name to list_svcs output, RT#13656
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 32f9f5823..e5016d51e 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -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 = ( |