summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/cust_main/Location.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Location.pm b/FS/FS/cust_main/Location.pm
index 4bcffab41..4f382af43 100644
--- a/FS/FS/cust_main/Location.pm
+++ b/FS/FS/cust_main/Location.pm
@@ -158,7 +158,11 @@ sub _upgrade_data {
}
}
- foreach my $cust_main (qsearch('cust_main', { bill_locationnum => '' })) {
+ foreach my $cust_main (qsearch('cust_main', {
+ bill_locationnum => '',
+ address1 => { op=>'!=', value=>'' },
+ }))
+ {
# Step 1: extract billing and service addresses into cust_location
my $custnum = $cust_main->custnum;
my $bill_location = FS::cust_location->new(