summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-10-04 01:04:01 +0000
committerivan <ivan>2011-10-04 01:04:01 +0000
commitd59081d27225478c3b0776f2ea0d0587f714f90b (patch)
tree8bf2501aaf2d39c460bc87a1fca7cd3b46c0a66a
parentf4ec0a21640ac69938a32c423635f9fed336d26d (diff)
add svc_dsl name to list_svcs output, RT#13656
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm8
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 = (