From 85df57b62bee761a4946850f97230a21e96c51a6 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 3 Feb 2014 17:12:32 -0800 Subject: [PATCH] fix A/R aging and other customer reports when choosing a display format with address, RT#27393 --- FS/FS/UI/Web.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index e31ff14a5..5fcd52220 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -357,6 +357,11 @@ sub cust_sql_fields { } } } + foreach my $pre ('bill_','ship_') { + if ( grep { $_ eq $pre.'country_full' } @cust_fields ) { + push @location_fields, $pre.'locationnum'; + } + } foreach my $field (qw(daytime night fax payby)) { push @fields, $field if (grep { $_ eq $field } @cust_fields); -- 2.11.0