summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-address_standardize.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-03-26 21:45:03 -0700
committerMark Wells <mark@freeside.biz>2016-03-26 21:47:56 -0700
commitcf9f2e6f72b98d3032aab97ad8a916c41878aa57 (patch)
treeaf206b66894ebe2bb71fc704fdc407c1623d7a36 /httemplate/misc/xmlhttp-address_standardize.html
parent4426278dd2f0c1f037cb67eb23d43be2a68b6224 (diff)
improve address standardization UI, #33849
Diffstat (limited to 'httemplate/misc/xmlhttp-address_standardize.html')
-rw-r--r--httemplate/misc/xmlhttp-address_standardize.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/misc/xmlhttp-address_standardize.html b/httemplate/misc/xmlhttp-address_standardize.html
index d0255a02a..be58618d0 100644
--- a/httemplate/misc/xmlhttp-address_standardize.html
+++ b/httemplate/misc/xmlhttp-address_standardize.html
@@ -23,6 +23,7 @@ if ( $old{same} ) {
@prefixes = ('bill_', 'ship_');
}
my $all_same = 1;
+my $all_clean = 1;
foreach my $pre ( @prefixes ) {
my $location = {
@@ -48,8 +49,13 @@ foreach my $pre ( @prefixes ) {
$old{$pre.'censustract'} ne $new{$pre.'censustract'} );
$all_same = 0 if $new{$pre.'error'};
+
+ $all_clean = 0 if !$new{$pre.'addr_clean'};
}
-my $return = { old => \%old, new => \%new, all_same => $all_same };
+my $return = { old => \%old,
+ new => \%new,
+ all_same => $all_same,
+ all_clean => $all_clean };
warn "result:\n".encode_json($return) if $DEBUG;
</%init>