From: levinse Date: Wed, 13 Apr 2011 04:22:38 +0000 (+0000) Subject: add config option to disable auto-application of credits to invoices, RT12331 X-Git-Tag: freeside_2_3_0~400 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a96df0649e6b57d19896ec78236b4d7a8dfdf241 add config option to disable auto-application of credits to invoices, RT12331 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 43e7aaa3d..5bad05636 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -655,6 +655,13 @@ my %payment_gateway_options = ( }, { + 'key' => 'credits-auto-apply-disable', + 'section' => 'billing', + 'description' => 'Disable the "Auto-Apply to invoices" UI option for new credits', + 'type' => 'checkbox', + }, + + { 'key' => 'credit-card-surcharge-percentage', 'section' => 'billing', 'description' => 'Add a credit card surcharge to invoices, as a % of the invoice total. WARNING: this is usually prohibited by merchant account / other agreements and/or law, but is currently lawful in AU and UK.', 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 @@ +% if ( $conf->exists('credits-auto-apply-disable') ) { + +% } else { Auto-apply
to invoices +% } % if ( $conf->exists('pkg-balances') ) { <% include('/elements/tr-select-cust_pkg-balances.html',