summaryrefslogtreecommitdiff
path: root/FS/FS/cust_svc.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-05-07 19:39:09 -0700
committerIvan Kohler <ivan@freeside.biz>2012-05-07 19:39:09 -0700
commit8364f7794d5ab8e64b472bdda43f48038cdd9656 (patch)
tree337f659fa92a29b583f73cfc4788785173561624 /FS/FS/cust_svc.pm
parentc7ad63f42570c80ba01e00326e62a8ef66ba86c3 (diff)
add display_svcnum & pkg_label to list_svcs selfservice API call, RT#17617
Diffstat (limited to 'FS/FS/cust_svc.pm')
-rw-r--r--FS/FS/cust_svc.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index 1fd8406..604c654 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -344,6 +344,18 @@ sub check {
$self->SUPER::check;
}
+=item display_svcnum
+
+Returns the displayed service number for this service: agent_svcid if it has a
+value, svcnum otherwise
+
+=cut
+
+sub display_svcnum {
+ my $self = shift;
+ $self->agent_svcid || $self->svcnum;
+}
+
=item part_svc
Returns the definition for this service, as a FS::part_svc object (see