diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-01-28 16:23:40 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-01-28 16:23:40 -0800 |
commit | 5f7ce7b22d70058613be046ee67778d6d9969fd9 (patch) | |
tree | c56bdaaff0f200e329d2e99825564393d8e5aedd /FS/FS/part_svc.pm | |
parent | bbc082b0295335839b6e52ebc46941905165f202 (diff) |
optimize Reports->Customers->List Customers, RT#20173
Diffstat (limited to 'FS/FS/part_svc.pm')
-rw-r--r-- | FS/FS/part_svc.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm index 08003dd..612c590 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 ) = ( '', '' ); |