X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fh_cust_svc.pm;h=7b565adde5285dc191f0cff9638e98c4eaabe0f4;hb=31807e3e9acddff34011e919728c113e69ad9a26;hp=e03043698e738a2d8d9debe3c7461142d370b8d4;hpb=083d1fef19686b9b72f1b92e72a4fa56a3f392a9;p=freeside.git diff --git a/FS/FS/h_cust_svc.pm b/FS/FS/h_cust_svc.pm index e03043698..7b565adde 100644 --- a/FS/FS/h_cust_svc.pm +++ b/FS/FS/h_cust_svc.pm @@ -52,9 +52,15 @@ If a service is found, returns a list consisting of: =cut -sub label { +sub label { shift->_label('svc_label', @_); } +sub label_long { shift->_label('svc_label_long', @_); } + +sub _label { my $self = shift; - carp "FS::h_cust_svc::label called on $self" if $DEBUG; + my $method = shift; + + #carp "FS::h_cust_svc::_label called on $self" if $DEBUG; + warn "FS::h_cust_svc::_label called on $self for $method" if $DEBUG; my $svc_x = $self->h_svc_x(@_); return () unless $svc_x; my $part_svc = $self->part_svc; @@ -65,7 +71,7 @@ sub label { } my @label; - eval { @label = $self->_svc_label($svc_x, @_); }; + eval { @label = $self->$method($svc_x, @_); }; if ($@) { carp 'while resolving history record for svcdb/svcnum ' . @@ -92,6 +98,7 @@ sub h_svc_x { warn "requiring FS/h_$svcdb.pm" if $DEBUG; require "FS/h_$svcdb.pm"; + local($FS::Record::qsearch_qualify_columns) = 0; my $svc_x = qsearchs( "h_$svcdb", { 'svcnum' => $self->svcnum, },