don't error out displaying customer reocrd if tax vendor is configured and customer...
authorIvan Kohler <ivan@freeside.biz>
Thu, 8 Jun 2017 01:08:21 +0000 (18:08 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 8 Jun 2017 01:08:21 +0000 (18:08 -0700)
httemplate/view/cust_main/billing.html

index bd589d7..5935da9 100644 (file)
@@ -138,7 +138,7 @@ set_display_recurring(<% encode_json({'display_recurring' => [ $cust_main->displ
 % my $tax_location = $conf->exists('tax-ship_address')
 %                    ? $cust_main->ship_location
 %                    : $cust_main->bill_location;
 % my $tax_location = $conf->exists('tax-ship_address')
 %                    ? $cust_main->ship_location
 %                    : $cust_main->bill_location;
-  <TD><% $tax_location->geocode %></TD>
+  <TD><% $tax_location && $tax_location->geocode %></TD>
 </TR>
 % }
 <TR>
 </TR>
 % }
 <TR>