projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b620cc4
)
censustract upgrade should skip prospect locations, #25660
author
Mark Wells
<mark@freeside.biz>
Thu, 7 Nov 2013 21:32:23 +0000
(13:32 -0800)
committer
Mark Wells
<mark@freeside.biz>
Thu, 7 Nov 2013 21:32:23 +0000
(13:32 -0800)
FS/FS/cust_main/Location.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main/Location.pm
b/FS/FS/cust_main/Location.pm
index
6b707b1
..
52fe313
100644
(file)
--- a/
FS/FS/cust_main/Location.pm
+++ b/
FS/FS/cust_main/Location.pm
@@
-301,6
+301,7
@@
sub _upgrade_data {
qsearch('cust_location', { 'censustract' => '' })
) {
my $custnum = $cust_location->custnum;
+ next if !$custnum; # avoid doing this for prospect locations
my $address1 = $cust_location->address1;
# find the last history record that had that address
my $last_h = qsearchs({