X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fconfirm-address_standardize.html;h=57201ea5ac5692becae176fc99a3c83580e050a9;hb=2bb7db96a07599e980323c1b6b23a8c79cc17a9a;hp=a6f4b06e830c2a1a13b496d92e3376222cb577a9;hpb=e32344effc97e76f9ee26fbf4ee206bfaee47a54;p=freeside.git diff --git a/httemplate/misc/confirm-address_standardize.html b/httemplate/misc/confirm-address_standardize.html index a6f4b06e8..57201ea5a 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 { @@ -15,11 +15,11 @@ Confirm address standardization % if ( $old{onlyship} ) { % @prefixes = ('ship_'); % } elsif ( $old{same} ) { -% @prefixes = (''); +% @prefixes = ('bill_'); % } else { -% @prefixes = ('', 'ship_'); +% @prefixes = ('bill_', 'ship_'); % } -% for my $pre ('', 'ship_') { +% for my $pre (@prefixes) { % my $name = $pre eq 'ship_' ? 'service' : 'billing'; % if ( $new{$pre.'addr_clean'} ) { @@ -70,24 +70,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 ) { 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 %> % } % } #if censustract -% if ( $new{error} or $new{ship_error} ) { +% if ( $new{bill_error} or $new{ship_error} ) {