fix A/R aging and other customer reports when choosing a display format with address...
authorIvan Kohler <ivan@freeside.biz>
Tue, 4 Feb 2014 01:12:32 +0000 (17:12 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 4 Feb 2014 01:12:32 +0000 (17:12 -0800)
FS/FS/UI/Web.pm

index e31ff14..5fcd522 100644 (file)
@@ -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);