X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=8415d629d0bd46ed8785f1319262259a246babc6;hb=5bba35a52be0524c3ef72bde8b7ef781dac0c179;hp=7de248abd780ebad4ab9fc73020c9bcd8968197c;hpb=aab2166e84e0624e879b374d5a147bea2486740d;p=freeside.git diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 7de248abd..8415d629d 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -1535,8 +1535,11 @@ sub h_cust_svc { sub _sort_cust_svc { my( $self, $arrayref ) = @_; + my $sort = + sub ($$) { my ($a, $b) = @_; $b->[1] cmp $a->[1] or $a->[2] <=> $b->[2] }; + map { $_->[0] } - sort { $b->[1] cmp $a->[1] or $a->[2] <=> $b->[2] } + sort $sort map { my $pkg_svc = qsearchs( 'pkg_svc', { 'pkgpart' => $self->pkgpart, 'svcpart' => $_->svcpart } ); @@ -1946,16 +1949,16 @@ sub cust_location_or_main { $self->cust_location || $self->cust_main; } -=item location_label_short +=item location_label [ OPTION => VALUE ... ] -Returns the short label of the location object (see L). +Returns the label of the location object (see L). =cut -sub location_label_short { +sub location_label { my $self = shift; my $object = $self->cust_location_or_main; - $object->location_label_short; + $object->location_label(@_); } =item seconds_since TIMESTAMP