diff options
| author | mark <mark> | 2012-02-19 02:30:50 +0000 |
|---|---|---|
| committer | mark <mark> | 2012-02-19 02:30:50 +0000 |
| commit | 58794e6ebfb3b47ef054f233131ee20ecb308190 (patch) | |
| tree | 7028bbed45f632c72c68c0da91c0eb7b7afb7ad6 /httemplate | |
| parent | 9bb73f9a86a9d9c1d1c71d652367aaf84f7f7c37 (diff) | |
more per-agent options, #15973
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/edit/cust_main/billing.html | 5 | ||||
| -rw-r--r-- | httemplate/edit/cust_main/contact.html | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 78fac6c22..bf6c62339 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -480,7 +480,8 @@ % unless ( $conf->exists('cust-email-high-visibility')) { <TR> <TD ALIGN="right" WIDTH="200"> - <% $conf->exists('cust_main-require_invoicing_list_email') ? $r : '' %>Email address(es) + <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum) + ? $r : '' %>Email address(es) </TD> <TD WIDTH="408"><INPUT TYPE="text" NAME="invoicing_list" VALUE="<% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) %>"></TD> </TR> @@ -614,4 +615,6 @@ if ( $cust_main->custnum ) { $show_term = $term_sth->fetchrow_arrayref->[0]; } +my $agentnum = $cust_main->agentnum if $cust_main->custnum; + </%init> diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index 51c0960ca..4912327c6 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -21,7 +21,8 @@ % if ( $conf->exists('cust-email-high-visibility') && !$pre ) { <TR> <TD ALIGN="right" WIDTH="200"> - <% $conf->exists('cust_main-require_invoicing_list_email') ? $r : '' %>Email address(es) + <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum) + ? $r : '' %>Email address(es) </TD> <TD bgcolor="#FFFF00"> <INPUT TYPE="text" NAME="invoicing_list" VALUE="<% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) %>"> @@ -209,4 +210,6 @@ my $r = qq!<font color="#ff0000">*</font> !; my @invoicing_list = $cust_main->invoicing_list; +my $agentnum = $cust_main->agentnum if $cust_main->custnum; + </%init> |
