X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FLocation.pm;h=4f382af433325943339738bb08e1da74f17d99ad;hb=49a0b5d01cfa15be787539edfff5ba4875ca3c3e;hp=4bcffab41afb114e04a3e082a68ebfc52bfcba9c;hpb=ec02246ea0218838def2b12b0b987f71662d1761;p=freeside.git 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(