X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts_new.html;h=fe412cc00365db0043320f4413ab59ef33ee5209;hp=d55ee3dc3b43ac6e06290f6a2939b7071d4f86e6;hb=4747bfbea3f4abb66d05a2bd1abed69e28a4aa3d;hpb=b2fd002f3285b70311642f8ff0025598d42bd16e diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index d55ee3dc3..fe412cc00 100644 --- a/httemplate/view/cust_main/contacts_new.html +++ b/httemplate/view/cust_main/contacts_new.html @@ -10,6 +10,7 @@ <%$th%>Contact <%$th%>Email <%$th%>Send invoices + <%$th%>Send messages <%$th%>Self-service % foreach my $phone_type (@phone_type) { <%$th%><% $phone_type->typename |h %> @@ -31,7 +32,8 @@ % 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%><% $cust_contact->message_dest eq 'Y' ? 'Yes' : 'No' %> <%$td%> % if ( $cust_contact->selfservice_access ) { Enabled @@ -78,7 +80,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;