From 05dee44cdb4e93df6963ae396f916705c4086f86 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 --- httemplate/misc/payment.cgi | 71 ++++++++++++++++++++++++++----------- httemplate/misc/process/payment.cgi | 3 +- 2 files changed, 53 insertions(+), 21 deletions(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 02648a821..f30e4098e 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -33,6 +33,57 @@ &> % } +% 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; + + + +% } else { + + +    <% mt('Add to current batch') |h %> + + + + + +% } +% } + +% 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 + + +% } +