diff options
author | levinse <levinse> | 2011-04-13 04:24:55 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-04-13 04:24:55 +0000 |
commit | 9199477fb4ab87db98f5a8eb2ee6a051508293a5 (patch) | |
tree | 491e6d4f99be21ed4d632d751b05cba30192c6d0 /httemplate | |
parent | 24784b1f4768f4ae7b82995bdadd84ee7cac04da (diff) |
add config option to disable auto-application of credits to invoices, RT12331
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_credit.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index dc80847de..892637a34 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', |