X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts_new.html;h=94488670df7f7e9a8af76767f15727b480c1073f;hb=929783d1045757abbe5c84ff2439547b0f8eca23;hp=590409df9df4defece752bf37fdb652ff1aee731;hpb=3e9a428cbc8abd4af6fea8eb828126519b43198b;p=freeside.git diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index 590409df9..94488670d 100644 --- a/httemplate/view/cust_main/contacts_new.html +++ b/httemplate/view/cust_main/contacts_new.html @@ -1,4 +1,4 @@ -%if ( @cust_contacts ) { +% if ( $display and @cust_contacts ) {
Contacts @@ -9,6 +9,7 @@ <%$th%>Type <%$th%>Contact <%$th%>Email + <%$th%>Send invoices <%$th%>Self-service % foreach my $phone_type (@phone_type) { <%$th%><% $phone_type->typename |h %> @@ -30,7 +31,7 @@ % my @contact_email = $contact->contact_email; <%$td%><% join(', ', map $_->emailaddress, @contact_email) %> - + <%$td%><% $cust_contact->invoice_dest eq 'Y' ? 'Yes' : 'No' %> <%$td%> % if ( $cust_contact->selfservice_access ) { Enabled @@ -75,4 +76,8 @@ my( $cust_main ) = @_; 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 = scalar(@cust_contacts) > 1; +