X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_svc.pm;h=612c59013c3d7b04d51e44e8fae6d230fb3145c1;hb=156e74067cc8723e187dfd9c5aa7ff956306fe01;hp=08003dd42735aa4d9d074e78967496ee6fcb4866;hpb=8eae613f03657bd343cceb674854035ba501ecb5;p=freeside.git diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm index 08003dd42..612c59013 100644 --- a/FS/FS/part_svc.pm +++ b/FS/FS/part_svc.pm @@ -565,6 +565,9 @@ is specified as B<0>, returns the number of unlinked customer services. sub num_cust_svc { my $self = shift; + return $self->{Hash}{num_cust_svc} + if !@_ && exists($self->{Hash}{num_cust_svc}); + my @param = ( $self->svcpart ); my( $join, $and ) = ( '', '' );