X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fconfirm-address_standardize.html;h=420e8ea1dff4c5827fa4966bee392f49e997a91d;hb=54a357b171aa44f9399b4c146acd2afd3b686075;hp=a6f4b06e830c2a1a13b496d92e3376222cb577a9;hpb=84fa358b56b89205fff99927080d5c28c01d57ff;p=freeside.git diff --git a/httemplate/misc/confirm-address_standardize.html b/httemplate/misc/confirm-address_standardize.html index a6f4b06e8..420e8ea1d 100644 --- a/httemplate/misc/confirm-address_standardize.html +++ b/httemplate/misc/confirm-address_standardize.html @@ -2,7 +2,7 @@ th { line-height: 150% }

-% if ( $new{error} or $new{ship_error} ) { +% if ( $new{bill_error} or $new{ship_error} ) { Address standardization error % } % else { @@ -11,16 +11,14 @@ Confirm address standardization

-% my @prefixes; -% if ( $old{onlyship} ) { -% @prefixes = ('ship_'); -% } elsif ( $old{same} ) { -% @prefixes = (''); -% } else { -% @prefixes = ('', 'ship_'); +% my @prefixes = (''); +% if ( $old{same} ) { +% @prefixes = ('bill_'); +% } elsif ( $old{billship} ) { +% @prefixes = ('bill_', 'ship_'); % } -% for my $pre ('', 'ship_') { -% my $name = $pre eq 'ship_' ? 'service' : 'billing'; +% for my $pre (@prefixes) { +% my $name = $pre eq 'bill_' ? 'billing' : 'service'; % if ( $new{$pre.'addr_clean'} ) { @@ -70,24 +68,27 @@ Confirm address standardization % } # for $pre %# only do this part if address standardization provided a censustract -% if ( $new{'ship_censustract'} ) { +% my $pre = $old{same} ? 'bill_' : 'ship_'; +% my $censustract = $new{$pre.'censustract'}; +% my $census_error = $new{$pre.'census_error'}; +% if ( $censustract ) { - + % } #if censustract -% if ( $new{error} or $new{ship_error} ) { +% if ( $new{bill_error} or $new{ship_error} ) {
Entered <%$name%> address
Entered census tract Calculated census tract
<% $old{'ship_censustract'} %><% $old{$pre.'censustract'} %> -% if ( $new{'ship_census_error'} ) { - <% $new{'ship_census_error'} %> +% if ( $census_error ) { + <% $census_error %> % } else { - <% $new{'ship_censustract'} %> + <% $censustract %> % }