From fbba36b298b90d72884e8a46b74e9fd7b67b4d34 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 25 Feb 2016 09:14:26 -0600 Subject: RT#30600: Auto Apply for CC payments [v3 merge] --- httemplate/misc/payment.cgi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'httemplate/misc/payment.cgi') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index a48aa0120..2f76b85f1 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -204,11 +204,13 @@ +% my $disallow_no_auto_apply = 0; % if ( $conf->exists("batch-enable") % || grep $payby eq $_, $conf->config('batch-enable_payby') % ) { % % if ( grep $payby eq $_, $conf->config('realtime-disable_payby') ) { +% $disallow_no_auto_apply = 1; @@ -216,7 +218,7 @@ - + <% mt('Add to current batch') |h %> @@ -231,6 +233,35 @@ +% unless ($disallow_no_auto_apply) { +% # false laziness with edit/cust_pay.cgi + + + + <% mt('Auto-apply to invoices') |h %> + + + + +% # this can go away if no_auto_apply handling gets added to batch payment processing + + +% } +
-- cgit v1.2.1