From 9199477fb4ab87db98f5a8eb2ee6a051508293a5 Mon Sep 17 00:00:00 2001 From: levinse Date: Wed, 13 Apr 2011 04:24:55 +0000 Subject: [PATCH] add config option to disable auto-application of credits to invoices, RT12331 --- FS/FS/Conf.pm | 7 +++++++ httemplate/edit/cust_credit.cgi | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 3595db6ae..c7bcb28b0 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -653,6 +653,13 @@ my %payment_gateway_options = ( 'description' => 'IP address to assign to new virtual hosts', 'type' => 'text', }, + + { + 'key' => 'credits-auto-apply-disable', + 'section' => 'billing', + 'description' => 'Disable the "Auto-Apply to invoices" UI option for new credits', + 'type' => 'checkbox', + }, { 'key' => 'discount-show-always', 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 @@ +% 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', -- 2.20.1