summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorlevinse <levinse>2011-04-13 04:22:38 +0000
committerlevinse <levinse>2011-04-13 04:22:38 +0000
commita96df0649e6b57d19896ec78236b4d7a8dfdf241 (patch)
tree890156dc6c8cf7f80499fba92ed1ab03e9fd3397 /httemplate/edit
parent7b3528faa2b4f056a142747445a9de682f878d72 (diff)
add config option to disable auto-application of credits to invoices, RT12331
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/cust_credit.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi
index 1238e9490..d5e53b8f1 100755
--- a/httemplate/edit/cust_credit.cgi
+++ b/httemplate/edit/cust_credit.cgi
@@ -40,10 +40,14 @@
<INPUT TYPE="text" NAME="addlinfo" VALUE="<% $cgi->param('addlinfo') |h %>">
</TD>
+% if ( $conf->exists('credits-auto-apply-disable') ) {
+ <INPUT TYPE="HIDDEN" NAME="apply" VALUE="no">
+% } else {
<TR>
<TD ALIGN="right">Auto-apply<BR>to invoices</TD>
<TD><SELECT NAME="apply"><OPTION VALUE="yes" SELECTED>yes<OPTION>no</SELECT></TD>
</TR>
+% }
% if ( $conf->exists('pkg-balances') ) {
<% include('/elements/tr-select-cust_pkg-balances.html',