summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-10-04 01:03:58 +0000
committerivan <ivan>2011-10-04 01:03:58 +0000
commit1551c7d41cea8bfa58ea1d3fb489cfb54823e5d8 (patch)
tree590f7b19fc8e47198ecc9880f07440a69ab938c7 /FS
parent2997ee62c3bda5da1b0ec9068390c15ec3088ec9 (diff)
add svc_dsl name to list_svcs output, RT#13656
Diffstat (limited to 'FS')
-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 = (