summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main_Mixin.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-10-04 16:25:08 -0700
committerMark Wells <mark@freeside.biz>2013-10-04 16:25:08 -0700
commit9f26e78e38c70af6d2de28808c119b0e2251fd41 (patch)
tree0dfbb5766acae7b47ee63e1fb4093b3994904771 /FS/FS/cust_main_Mixin.pm
parent7d967f5ac6929fddc08cc077bcd44ea48a3937f2 (diff)
fix some report column names/expressions, #940, #25161
Diffstat (limited to 'FS/FS/cust_main_Mixin.pm')
-rw-r--r--FS/FS/cust_main_Mixin.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm
index 212c04e..f584b41 100644
--- a/FS/FS/cust_main_Mixin.pm
+++ b/FS/FS/cust_main_Mixin.pm
@@ -131,9 +131,12 @@ linked to a customer.
sub country_full {
my $self = shift;
- $self->cust_linked
- ? FS::cust_main::country_full($self)
- : $self->cust_unlinked_msg;
+ if ( $self->locationnum ) { # cust_pkg has this
+ my $location = FS::cust_location->by_key($self->locationnum);
+ $location ? $location->country_full : '';
+ } elsif ( $self->cust_linked ) {
+ $self->cust_main->bill_country_full;
+ }
}
=item invoicing_list_emailonly