X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts_new.html;h=94488670df7f7e9a8af76767f15727b480c1073f;hb=2ffdb485e5534df3d89bcc12d4d02d485e9b28f5;hp=d55ee3dc3b43ac6e06290f6a2939b7071d4f86e6;hpb=b2fd002f3285b70311642f8ff0025598d42bd16e;p=freeside.git diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index d55ee3dc3..94488670d 100644 --- a/httemplate/view/cust_main/contacts_new.html +++ b/httemplate/view/cust_main/contacts_new.html @@ -31,7 +31,7 @@ % my @contact_email = $contact->contact_email; <%$td%><% join(', ', map $_->emailaddress, @contact_email) %> - <%$td%><% $contact->invoice_dest eq 'Y' ? 'Yes' : 'No' %> + <%$td%><% $cust_contact->invoice_dest eq 'Y' ? 'Yes' : 'No' %> <%$td%> % if ( $cust_contact->selfservice_access ) { Enabled @@ -78,7 +78,6 @@ my @cust_contacts = $cust_main->cust_contact; # residential customers have a default "invisible" contact, but if they # somehow get more than one contact, show them -my $display = (length($cust_main->residential_commercial) > 0) - or ( scalar(@cust_contacts) > 1 ); +my $display = scalar(@cust_contacts) > 1;