diff options
author | Mark Wells <mark@freeside.biz> | 2016-07-12 17:31:33 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-07-12 17:31:56 -0700 |
commit | 49d2d3c80a8d8cb241cac7258de28d547b17f826 (patch) | |
tree | 4d68eb82ed91be3da6b0a18422f8e348426630f1 | |
parent | bae80d2262c304b787a882780dda0bbb3613d9a8 (diff) |
restore location labels on invoices, but remove the 'default service location' prefix from everywhere, #71474
-rw-r--r-- | FS/FS/Template_Mixin.pm | 4 | ||||
-rw-r--r-- | FS/FS/cust_location.pm | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 23555294e..c8ddffd79 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -3360,7 +3360,7 @@ sub _items_cust_bill_pkg { # location, and we're not grouping items by location already if ( $cust_pkg->locationnum != $default_locationnum and !defined($locationnum) ) { - my $loc = $cust_pkg->location_label(no_prefix => 1); + my $loc = $cust_pkg->location_label; $loc = substr($loc, 0, $maxlength). '...' if $format eq 'latex' && length($loc) > $maxlength; push @d, &{$escape_function}($loc); @@ -3470,7 +3470,7 @@ sub _items_cust_bill_pkg { # location, and we're not grouping items by location already if ( $cust_pkg->locationnum != $default_locationnum and !defined($locationnum) ) { - my $loc = $cust_pkg->location_label(no_prefix => 1); + my $loc = $cust_pkg->location_label; $loc = substr($loc, 0, $maxlength). '...' if $format eq 'latex' && length($loc) > $maxlength; push @d, &{$escape_function}($loc); diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index 0dec065e6..90400984c 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -722,9 +722,12 @@ sub label_prefix { } elsif ( $label_prefix eq '_location' && $self->locationname ) { $prefix = $self->locationname; - } elsif ( ( $opt{'cust_main'} || $self->custnum ) - && $self->locationnum == $cust_or_prospect->ship_locationnum ) { - $prefix = 'Default service location'; + #} elsif ( ( $opt{'cust_main'} || $self->custnum ) + # && $self->locationnum == $cust_or_prospect->ship_locationnum ) { + # $prefix = 'Default service location'; + #} + } else { + $prefix = ''; } $prefix; |