diff options
Diffstat (limited to 'httemplate/view/cust_main/contacts_new.html')
| -rw-r--r-- | httemplate/view/cust_main/contacts_new.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index 590409df9..d55ee3dc3 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 ) { <BR> <FONT CLASS="fsinnerbox-title">Contacts</FONT> @@ -9,6 +9,7 @@ <%$th%>Type</TH> <%$th%>Contact</TH> <%$th%>Email</TH> + <%$th%>Send invoices</TH> <%$th%>Self-service</TH> % foreach my $phone_type (@phone_type) { <%$th%><% $phone_type->typename |h %></TH> @@ -30,7 +31,7 @@ % my @contact_email = $contact->contact_email; <%$td%><% join(', ', map $_->emailaddress, @contact_email) %></TD> - + <%$td%><% $contact->invoice_dest eq 'Y' ? 'Yes' : 'No' %></TD> <%$td%> % if ( $cust_contact->selfservice_access ) { Enabled @@ -75,4 +76,9 @@ 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 = (length($cust_main->residential_commercial) > 0) + or ( scalar(@cust_contacts) > 1 ); + </%init> |
