X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fconfirm-address_standardize.html;h=2eae011c497bf752e49c945c4ca3666d2e09385a;hb=2dccc0bab4f744c2fcc21f966f5033de7a687a7d;hp=420e8ea1dff4c5827fa4966bee392f49e997a91d;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git
diff --git a/httemplate/misc/confirm-address_standardize.html b/httemplate/misc/confirm-address_standardize.html
index 420e8ea1d..2eae011c4 100644
--- a/httemplate/misc/confirm-address_standardize.html
+++ b/httemplate/misc/confirm-address_standardize.html
@@ -19,52 +19,57 @@ Confirm address standardization
% }
% for my $pre (@prefixes) {
% my $name = $pre eq 'bill_' ? 'billing' : 'service';
-% if ( $new{$pre.'addr_clean'} ) {
+% if ( $new{$pre.'error'} ) {
Entered <%$name%> address
- Standardized <%$name%> address
-
% if ( $old{$pre.'company'} ) {
<% $old{$pre.'company'} %>
- <% $new{$pre.'company'} %>
% }
<% $old{$pre.'address1'} %>
- <% $new{$pre.'address1'} %>
+ <% $new{$pre.'error'} %>
<% $old{$pre.'address2'} %>
- <% $new{$pre.'address2'} %>
<% $old{$pre.'city'} %>, <% $old{$pre.'state'} %> <% $old{$pre.'zip'} %>
- <% $new{$pre.'city'} %>, <% $new{$pre.'state'} %> <% $new{$pre.'zip'} %>
-
-% } # if addr_clean
-% elsif ( $new{$pre.'error'} ) {
+% } else { # not an error
Entered <%$name%> address
+ Standardized <%$name%> address
+
+% if ( !$new{$pre.'addr_clean'} ) {
+
+
+ (unverified)
+% }
+
% if ( $old{$pre.'company'} ) {
<% $old{$pre.'company'} %>
+ <% $new{$pre.'company'} %>
% }
<% $old{$pre.'address1'} %>
- <% $new{$pre.'error'} %>
+ <% $new{$pre.'address1'} %>
<% $old{$pre.'address2'} %>
+ <% $new{$pre.'address2'} %>
<% $old{$pre.'city'} %>, <% $old{$pre.'state'} %> <% $old{$pre.'zip'} %>
+ <% $new{$pre.'city'} %>, <% $new{$pre.'state'} %> <% $new{$pre.'zip'} %>
-% } #if error
+
+% } # if error
% } # for $pre
%# only do this part if address standardization provided a censustract
@@ -88,7 +93,7 @@ Confirm address standardization
% } #if censustract
-% if ( $new{bill_error} or $new{ship_error} ) {
+% if ( grep {$new{$_.'error'}} @prefixes ) {
@@ -99,11 +104,10 @@ Confirm address standardization
Cancel submission
-% }
-% else {
+% } else {
-
+
Use entered <%$addresses%>