From 113d47ee6ca162ee0adb5bd2a74b59cc56b7f8a9 Mon Sep 17 00:00:00 2001 From: levinse Date: Mon, 30 May 2011 23:27:10 +0000 Subject: optional better visibility for invoicing email field, RT12944 --- httemplate/view/cust_main/billing.html | 2 ++ httemplate/view/cust_main/contacts.html | 10 ++++++++++ 2 files changed, 12 insertions(+) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index efff3ed1c..f2596dbae 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -203,12 +203,14 @@ Billing information <% ( grep { $_ eq 'FAX' } @invoicing_list ) ? 'yes' : 'no' %> +% unless ( $conf->exists('cust-email-high-visibility')) { Email invoices <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || 'no' %> +% } Invoice terms diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index e91af54e6..494012e39 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 %> + + +% } Company <% $cust_main->get("${pre}company") |h %> @@ -117,6 +125,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