From dd65ba99bb9281571f19744154a3b03bcd3f01ab Mon Sep 17 00:00:00 2001 From: levinse Date: Mon, 30 May 2011 23:27:09 +0000 Subject: optional better visibility for invoicing email field, RT12944 --- httemplate/view/cust_main/contacts.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'httemplate/view/cust_main/contacts.html') diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 9a55e5488..56fbac8c6 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -17,6 +17,14 @@ <% $cust_main->masked('ss') || ' ' %> % } +% if ( $conf->exists('cust-email-high-visibility') && $which eq '') { + + <% mt('Email invoices') |h %> + + <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %> + + +% } <% mt('Company') |h %> <% $cust_main->get("${pre}company") |h %> @@ -115,6 +123,8 @@ my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_st my( $cust_main ) = @_; my $conf = new FS::Conf; +my @invoicing_list = $cust_main->invoicing_list; +my $no = emt('no'); -- cgit v1.2.1