fix the case where the customer doesn't actually have a ship address
authorivan <ivan>
Mon, 17 Dec 2007 01:17:05 +0000 (01:17 +0000)
committerivan <ivan>
Mon, 17 Dec 2007 01:17:05 +0000 (01:17 +0000)
httemplate/view/cust_main/contacts.html

index 20770e4..e88c02e 100644 (file)
 % if ( $cust_main->get("${pre}address2") ) { 
 %   my $address2_label =
 %     ( $conf->exists('cust_main-require_address2')
-%       #  && (    ( !$which && !$cust_main->has_ship_address )
-%       #       || (  $which &&  $cust_main->has_ship_address )
-%       #     )
-%       && ! ( $which xor $cust_main->has_ship_address )
+%       && ! ( $pre xor $cust_main->has_ship_address )
 %     )
 %       ? 'Unit&nbsp;#'
 %       : '&nbsp;';