summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-05-18 23:44:33 +0000
committerivan <ivan>2007-05-18 23:44:33 +0000
commit2da16dd43198e18474f71769f02324b79e3678d7 (patch)
treee344a532c4fc1bebb5388586bb488e5b59f06c2c
parentb84e69be37314917a10e50f6db95441d04bcb6a3 (diff)
have "emailinvoiceonly" hide postal/fax invoice options in backoffice as well as self-service. closes: bug#1614
-rw-r--r--httemplate/edit/cust_main/billing.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index d9e0ed0e4..0b16f65b0 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -396,6 +396,8 @@
<TD WIDTH="608" COLSPAN="2"><INPUT TYPE="checkbox" NAME="tax" VALUE="Y" <% $cust_main->tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt</TD>
</TR>
+% unless ( $conf->exists('emailinvoiceonly') ) {
+
<TR>
<TD WIDTH="608" COLSPAN="2"><INPUT TYPE="checkbox" NAME="invoicing_list_POST" VALUE="POST" <%
@@ -421,6 +423,8 @@
</TD>
</TR>
+% }
+
<TR>
<TD ALIGN="right" WIDTH="200">Email invoice </TD>
<TD WIDTH="408"><INPUT TYPE="text" NAME="invoicing_list" VALUE="<% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) %>"></TD>